1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-26 11:06:44 +03:00
nixpkgs/pkgs/development/python-modules/django-mailman3/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
# build-system
, pdm-backend
# dependencies
, django-gravatar2
, django-allauth
, mailmanclient
, pytz
# tests
, django
, pytest-django
, pytestCheckHook
, nixosTests
2019-08-26 17:41:02 +02:00
}:
buildPythonPackage rec {
pname = "django-mailman3";
version = "1.3.12";
pyproject = true;
2019-08-26 17:41:02 +02:00
src = fetchPypi {
pname = "django_mailman3";
inherit version;
hash = "sha256-MnQlT5ElNnStLUKyOXnI7ZDDaBwfp+h9tbOC+cwB0es=";
2019-08-26 17:41:02 +02:00
};
build-system = [
pdm-backend
];
dependencies = [
django-allauth
django-gravatar2
mailmanclient
pytz
2019-08-26 17:41:02 +02:00
];
nativeCheckInputs = [
django
pytest-django
pytestCheckHook
];
2019-08-26 22:51:33 +02:00
preCheck = ''
export DJANGO_SETTINGS_MODULE=django_mailman3.tests.settings_test
'';
pythonImportsCheck = [
"django_mailman3"
];
passthru.tests = { inherit (nixosTests) mailman; };
meta = with lib; {
2019-08-26 22:51:33 +02:00
description = "Django library for Mailman UIs";
homepage = "https://gitlab.com/mailman/django-mailman3";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ qyliss ];
2019-08-26 22:51:33 +02:00
};
2019-08-26 17:41:02 +02:00
}