2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage, lib, fetchgit, isPy3k
|
2021-04-13 19:44:15 +00:00
|
|
|
, git, makeWrapper, sassc, hyperkitty, postorius, whoosh, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-04-13 19:44:15 +00:00
|
|
|
pname = "mailman-web";
|
|
|
|
version = "unstable-2021-04-10";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.com/mailman/mailman-web";
|
2021-04-13 19:44:15 +00:00
|
|
|
rev = "19a7abe27dd3bc39c0250440de073f0adecd4da1";
|
|
|
|
sha256 = "0h25140n2jaisl0ri5x7gdmbypiys8vlq8dql1zmaxvq459ybxkn";
|
2020-04-24 23:36:52 +00:00
|
|
|
leaveDotGit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# This is just so people installing from pip also get uwsgi
|
|
|
|
# installed, AFAICT.
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
# Django is depended on transitively by hyperkitty and postorius,
|
|
|
|
# and mailman_web has overly restrictive version bounds on it, so
|
|
|
|
# let's remove it.
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/^ uwsgi$/d' setup.cfg
|
2020-06-15 15:56:04 +00:00
|
|
|
sed -i '/^ Django/d' setup.cfg
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-13 19:44:15 +00:00
|
|
|
nativeBuildInputs = [ git setuptools-scm makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ hyperkitty postorius whoosh ];
|
|
|
|
|
|
|
|
# Tries to check runtime configuration.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mailman-web \
|
|
|
|
--suffix PATH : ${lib.makeBinPath [ sassc ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Django project for Mailman 3 web interface";
|
2021-04-13 19:44:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ peti qyliss m1cr0man ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|