Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-celery-email / default.nix
blobd403ee8d41037655b270c72dc6a4881ec7d9bb75
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , django
5 , django-appconf
6 , celery
7 , pytest-django
8 , pytestCheckHook
9 , python }:
11 buildPythonPackage rec {
12   pname = "django-celery-email";
13   version = "3.0.0";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "pmclanahan";
18     repo = pname;
19     rev = version;
20     hash = "sha256-LBavz5Nh2ObmIwLCem8nHvsuKgPwkzbS/OzFPmSje/M=";
21   };
23   propagatedBuildInputs = [
24     django
25     django-appconf
26     celery
27   ];
29   DJANGO_SETTINGS_MODULE = "tests.settings";
31   nativeCheckInputs = [
32     pytest-django
33     pytestCheckHook
34   ];
36   checkPhase = ''
37     ${python.executable} runtests.py
38   '';
40   pythonImportsCheck = [ "djcelery_email" ];
42   meta = with lib; {
43     homepage = "https://github.com/pmclanahan/django-celery-email";
44     description = "Django email backend that uses a celery task for sending the email";
45     license = licenses.bsd3;
46     maintainers = with maintainers; [ onny ];
47   };