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