Files
nixpkgs/pkgs/development/python-modules/django-celery-email/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
974 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
django-appconf,
celery,
pytest-django,
pytestCheckHook,
python,
}:
buildPythonPackage rec {
pname = "django-celery-email";
version = "3.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "pmclanahan";
repo = "django-celery-email";
rev = version;
hash = "sha256-LBavz5Nh2ObmIwLCem8nHvsuKgPwkzbS/OzFPmSje/M=";
};
propagatedBuildInputs = [
django
django-appconf
celery
];
DJANGO_SETTINGS_MODULE = "tests.settings";
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
checkPhase = ''
${python.executable} runtests.py
'';
pythonImportsCheck = [ "djcelery_email" ];
meta = {
homepage = "https://github.com/pmclanahan/django-celery-email";
description = "Django email backend that uses a celery task for sending the email";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ onny ];
};
}