2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 04:48:24 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, docopt
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-18 22:47:25 +01:00
|
|
|
version = "2.0.10";
|
2018-10-16 04:48:24 +01:00
|
|
|
pname = "mailchimp";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:25 +01:00
|
|
|
sha256 = "5227999904233a7d2e9ce5eac5225b9a5fac0318ae5107e3ed09c8bf89286768";
|
2018-10-16 04:48:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ docopt ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/==/>=/' setup.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 04:48:24 +01: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|