2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-16 05:48:24 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, docopt
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-18 23:47:25 +02:00
|
|
|
version = "2.0.10";
|
2018-10-16 05:48:24 +02:00
|
|
|
pname = "mailchimp";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 23:47:25 +02:00
|
|
|
sha256 = "5227999904233a7d2e9ce5eac5225b9a5fac0318ae5107e3ed09c8bf89286768";
|
2018-10-16 05:48:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ docopt ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/==/>=/' setup.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-16 05:48:24 +02:00
|
|
|
description = "A CLI client and Python API library for the MailChimp email platform";
|
|
|
|
homepage = "http://apidocs.mailchimp.com/api/2.0/";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|