2023-01-27 10:33:48 +01:00
|
|
|
{ lib
|
|
|
|
, fetchpatch
|
|
|
|
, python3
|
2023-05-25 20:37:59 +02:00
|
|
|
, fetchPypi
|
2023-01-27 10:33:48 +01:00
|
|
|
, postfix
|
|
|
|
, lynx
|
2022-04-26 12:19:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
with python3.pkgs;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mailman";
|
2023-01-27 10:33:48 +01:00
|
|
|
version = "3.3.8";
|
2022-04-26 12:19:41 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-27 10:33:48 +01:00
|
|
|
hash = "sha256-g6wH7lXqK0yJ8AxO1HFxMvBicBJ9NGWlPePFyxl9Qc4=";
|
2022-04-26 12:19:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiosmtpd
|
|
|
|
alembic
|
|
|
|
authheaders
|
|
|
|
click
|
|
|
|
dnspython
|
|
|
|
falcon
|
|
|
|
flufl_bounce
|
|
|
|
flufl_i18n
|
|
|
|
flufl_lock
|
|
|
|
gunicorn
|
|
|
|
lazr_config
|
|
|
|
passlib
|
|
|
|
requests
|
|
|
|
sqlalchemy
|
2023-07-28 02:55:45 +02:00
|
|
|
zope-component
|
2022-04-26 12:19:41 +02:00
|
|
|
zope_configuration
|
|
|
|
];
|
|
|
|
|
2023-01-27 10:33:48 +01:00
|
|
|
checkInputs = [
|
|
|
|
sphinx
|
|
|
|
];
|
|
|
|
|
2022-04-26 12:19:41 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.com/mailman/mailman/-/commit/4b206e2a5267a0e17f345fd7b2d957122ba57566.patch";
|
|
|
|
sha256 = "06axmrn74p81wvcki36c7gfj5fp5q15zxz2yl3lrvijic7hbs4n2";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.com/mailman/mailman/-/commit/9613154f3c04fa2383fbf017031ef263c291418d.patch";
|
|
|
|
sha256 = "0vyw87s857vfxbf7kihwb6w094xyxmxbi1bpdqi3ybjamjycp55r";
|
|
|
|
})
|
2023-10-11 08:57:14 +02:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.com/mailman/mailman/-/commit/5e4431af6bb7d672a7ed7e3329f8fac7812d47f8.patch";
|
|
|
|
excludes = [ ".gitlab-ci.yml" ];
|
|
|
|
hash = "sha256-y2AE9hU4Z1BpBlJywxMWiuRvltWkk+R9YgMkpemvlIo=";
|
|
|
|
})
|
2022-04-26 12:19:41 +02:00
|
|
|
./log-stderr.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "alembic>=1.6.2,<1.7" "alembic>=1.6.2"
|
|
|
|
|
|
|
|
substituteInPlace src/mailman/config/postfix.cfg \
|
|
|
|
--replace /usr/sbin/postmap ${postfix}/bin/postmap
|
|
|
|
substituteInPlace src/mailman/config/schema.cfg \
|
|
|
|
--replace /usr/bin/lynx ${lynx}/bin/lynx
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Mailman assumes that those scripts in $out/bin are Python scripts. Wrapping
|
|
|
|
# them in shell code breaks this assumption. Use the wrapped version (see
|
|
|
|
# wrapped.nix) if you need the CLI (rather than the Python library).
|
|
|
|
#
|
|
|
|
# This gives a properly wrapped 'mailman' command plus an interpreter that
|
|
|
|
# has all the necessary search paths to execute unwrapped 'master' and
|
|
|
|
# 'runner' scripts.
|
|
|
|
dontWrapPythonPrograms = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.gnu.org/software/mailman/";
|
|
|
|
description = "Free software for managing electronic mail discussion and newsletter lists";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2023-10-18 19:58:47 +02:00
|
|
|
maintainers = with lib.maintainers; [ qyliss ];
|
2022-04-26 12:19:41 +02:00
|
|
|
};
|
|
|
|
}
|