nixos/options/mailman3/core.nix

75 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-11 20:23:04 +02:00
{
stdenv,
buildPythonPackage,
fetchgit,
aiosmtpd,
alembic,
atpublic,
click,
dnspython,
falcon,
flufl_bounce,
flufl_i18n,
flufl_lock,
importlib-resources,
lazr_config,
passlib,
requests,
sqlalchemy,
zope_component,
zope_configuration,
zope_event,
zope_interface,
# optional database dependencies
pymysql,
psycopg2,
}:
buildPythonPackage rec {
name = "mailman3_core-${version}";
version = "3.2.2";
src = fetchgit {
url = "https://gitlab.com/mailman/mailman.git";
rev = version;
sha256 = "0p1z2i2x6f0g05lx5mymiiw2ij1bsycvbxwabb52nisdddcfhhzp";
};
propagatedBuildInputs = [
aiosmtpd
alembic
atpublic
click
dnspython
falcon
flufl_bounce
flufl_i18n
flufl_lock
importlib-resources
lazr_config
passlib
requests
sqlalchemy
zope_component
zope_configuration
zope_event
zope_interface
2023-09-11 20:23:04 +02:00
pymysql
psycopg2
];
doCheck = false;
# mailman imports master and runner
# -> only wrap $out/bin/mailman
dontWrapPythonPrograms = true;
postFixup = ''
wrapProgram $out/bin/mailman --prefix PYTHONPATH : "$PYTHONPATH"
'';
meta = with stdenv.lib; {
description = "GNU Mailman, a mailing list management system";
license = licenses.gpl3;
2023-09-11 20:23:04 +02:00
maintainers = with maintainers; [];
2023-09-11 21:20:14 +02:00
homepage = "http://list.org/";
};
}