c6ca5b8f13
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
47 lines
920 B
Nix
47 lines
920 B
Nix
{ 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 ];
|
|
};
|
|
}
|