72a14ea563
* Removed unused `.package`-option. * Added explicit postgresql support. * Create a new meta-package for mailman to make sure each component has the **same** python and packages can be downgraded if needed (e.g. psycopg2 or sqlalchemy) without interfering with `pythonPackages` in any way. * Document why certain python overrides are needed. Closes #170035 Closes #158424
47 lines
838 B
Nix
47 lines
838 B
Nix
{ lib
|
|
, python3
|
|
, mailman
|
|
}:
|
|
|
|
with python3.pkgs;
|
|
buildPythonPackage rec {
|
|
pname = "mailman-hyperkitty";
|
|
version = "1.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-EQBx1KX3z/Wv3QAHOi+s/ihLOjpiupIQBYyE6IPbJto=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
mailman
|
|
requests
|
|
zope_interface
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
nose2
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m nose2 -v
|
|
'';
|
|
|
|
# There is an AssertionError
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"mailman_hyperkitty"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Mailman archiver plugin for HyperKitty";
|
|
homepage = "https://gitlab.com/mailman/mailman-hyperkitty";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ globin qyliss ];
|
|
};
|
|
}
|