From 4e7b10b2668690f02a693ae82676c2cafb977445 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 16 Jun 2022 11:15:56 +0200 Subject: [PATCH] python310Packages.django-celery-email: init at 3.0.0 --- .../django-celery-email/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/django-celery-email/default.nix diff --git a/pkgs/development/python-modules/django-celery-email/default.nix b/pkgs/development/python-modules/django-celery-email/default.nix new file mode 100644 index 000000000000..950fb4f75e93 --- /dev/null +++ b/pkgs/development/python-modules/django-celery-email/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, django +, django-appconf +, celery +, pytest-django +, pytestCheckHook +, python }: + +buildPythonPackage rec { + pname = "django-celery-email"; + version = "3.0.0"; + + src = fetchFromGitHub { + owner = "pmclanahan"; + repo = pname; + rev = version; + sha256 = "sha256-LBavz5Nh2ObmIwLCem8nHvsuKgPwkzbS/OzFPmSje/M="; + }; + + propagatedBuildInputs = [ + django + django-appconf + celery + ]; + + DJANGO_SETTINGS_MODULE = "tests.settings"; + + checkInputs = [ + pytest-django + pytestCheckHook + ]; + + checkPhase = '' + ${python.executable} runtests.py + ''; + + pythonImportsCheck = [ "djcelery_email" ]; + + meta = with lib; { + homepage = "https://github.com/pmclanahan/django-celery-email"; + description = "Django email backend that uses a celery task for sending the email"; + license = licenses.bsd3; + maintainers = with maintainers; [ onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 11f1ca5e1501..34a3792b6bc1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2344,6 +2344,8 @@ in { django-cacheops = callPackage ../development/python-modules/django-cacheops { }; + django-celery-email = callPackage ../development/python-modules/django-celery-email { }; + django_classytags = callPackage ../development/python-modules/django_classytags { }; django-cleanup = callPackage ../development/python-modules/django-cleanup { };