Files
nixpkgs/pkgs/development/python-modules/django-celery-email/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

49 lines
949 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 = pname;
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 = 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 ];
};
}