10 buildPythonPackage rec {
11 pname = "mailmanclient";
13 format = "setuptools";
15 disabled = pythonOlder "3.7";
18 inherit pname version;
19 hash = "sha256-Y1gcYEyn6sAhSJwVqsygaklY63b2ZXTG+rBerGVN2Fc=";
22 propagatedBuildInputs = [ requests ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
24 # Tests require a running Mailman instance
27 pythonImportsCheck = [ "mailmanclient" ];
30 description = "REST client for driving Mailman 3";
31 homepage = "https://www.gnu.org/software/mailman/";
32 license = licenses.lgpl3Plus;
33 maintainers = with maintainers; [ qyliss ];
34 platforms = platforms.linux;