1{ stdenv, buildPythonPackage, fetchPypi, isPy3k, six, httplib2, requests }:
2
3buildPythonPackage rec {
4 pname = "mailmanclient";
5 version = "3.3.0";
6 disabled = !isPy3k;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "c8736cbe152ae1bd58b46ccfbcafb6a1e301513530772e7fda89f91d1e5c1ae9";
11 };
12
13 propagatedBuildInputs = [ six httplib2 requests ];
14
15 # no tests with Pypi tar ball, checkPhase removes setup.py which invalidates import check
16 doCheck = false;
17 pythonImportsCheck = [ "mailmanclient" ];
18
19 meta = with stdenv.lib; {
20 homepage = "https://www.gnu.org/software/mailman/";
21 description = "REST client for driving Mailman 3";
22 license = licenses.lgpl3;
23 platforms = platforms.linux;
24 maintainers = with maintainers; [ peti globin ];
25 };
26}