23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
58 lines
1,023 B
Nix
58 lines
1,023 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
|
|
# propagates
|
|
, django-gravatar2
|
|
, django-allauth
|
|
, mailmanclient
|
|
, pytz
|
|
|
|
# tests
|
|
, django
|
|
, pytest-django
|
|
, pytestCheckHook
|
|
, nixosTests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-mailman3";
|
|
version = "1.3.11";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-uIjJaZHWL2evj+oISLprvKWT5Sm5f2EKgUD1twL1VbQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace 'django>=3.2,<4.2' 'django>=3.2,<4.3'
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
django-allauth
|
|
django-gravatar2
|
|
mailmanclient
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
django
|
|
pytest-django
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"django_mailman3"
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests) mailman; };
|
|
|
|
meta = with lib; {
|
|
description = "Django library for Mailman UIs";
|
|
homepage = "https://gitlab.com/mailman/django-mailman3";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ qyliss ];
|
|
};
|
|
}
|