92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
41 lines
828 B
Nix
41 lines
828 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, requests
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mailmanclient";
|
|
version = "3.3.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-0y31HXjvU/bwy0s0PcDOlrX1RdyTTnk41ceD4A0R4p4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
typing-extensions
|
|
];
|
|
|
|
# Tests require a running Mailman instance
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"mailmanclient"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "REST client for driving Mailman 3";
|
|
homepage = "https://www.gnu.org/software/mailman/";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ globin qyliss ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|