Merge pull request #272050 from sephii/fix-django-anymail

python3Packages.django-anymail: fix package
This commit is contained in:
Jonas Heinrich 2023-12-21 09:33:26 +01:00 committed by GitHub
commit b53efc7b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,16 +5,17 @@
, requests
, django
, boto3
, hatchling
, python
, mock
, pytestCheckHook
, pytest-django
, responses
}:
buildPythonPackage rec {
pname = "django-anymail";
version = "10.1";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "anymail";
@ -23,29 +24,32 @@ buildPythonPackage rec {
hash = "sha256-unmbYQFLeqfqE1uFLMPLUad1UqA+sgbTzwRfpRhM3ik=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
six
requests
django
boto3
];
nativeCheckInputs = [
pytestCheckHook
pytest-django
mock
];
responses
] ++ passthru.optional-dependencies.amazon-ses;
disabledTests = [
# Require networking
"test_debug_logging"
"test_no_debug_logging"
];
passthru.optional-dependencies = {
amazon-ses = [ boto3 ];
};
checkPhase = ''
runHook preCheck
CONTINUOUS_INTEGRATION=1 python runtests.py
runHook postCheck
'';
pythonImportsCheck = [ "anymail" ];
DJANGO_SETTINGS_MODULE = "tests.test_settings.settings_3_2";
meta = with lib; {
description = "Django email backends and webhooks for Mailgun";
homepage = "https://github.com/anymail/django-anymail";