python3Packages.django-mailbox: init at 4.10.1
Co-authored-by: dotlambda <github@dotlambda.de>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pytest-django,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "django-mailbox";
|
||||
version = "4.10.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coddingtonbear";
|
||||
repo = "django-mailbox";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-7CBUnqveTSfdc+8x8sZUqvwYW3vKjZKfOPVWFSo4es0=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
preCheck = ''
|
||||
substituteInPlace setup.cfg --replace-fail "pytest" "tool:pytest"
|
||||
export DJANGO_SETTINGS_MODULE=django_mailbox.tests.settings
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "django_mailbox" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-django
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Import mail from POP3, IMAP, local email mailboxes or directly from Postfix or Exim4 into your Django application automatically";
|
||||
homepage = "https://github.com/coddingtonbear/django-mailbox";
|
||||
changelog = "https://github.com/coddingtonbear/django-mailbox/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ kurogeek ];
|
||||
};
|
||||
})
|
||||
@@ -4240,6 +4240,8 @@ self: super: with self; {
|
||||
callPackage ../development/python-modules/django-login-required-middleware
|
||||
{ };
|
||||
|
||||
django-mailbox = callPackage ../development/python-modules/django-mailbox { };
|
||||
|
||||
django-mailman3 = callPackage ../development/python-modules/django-mailman3 { };
|
||||
|
||||
django-maintenance-mode = callPackage ../development/python-modules/django-maintenance-mode { };
|
||||
|
||||
Reference in New Issue
Block a user