2020-04-22 14:36:04 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, future
|
|
|
|
, pyyaml
|
|
|
|
, jsonlines
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudflare";
|
2020-05-23 10:50:31 +01:00
|
|
|
version = "2.7.1";
|
2020-04-22 14:36:04 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-23 10:50:31 +01:00
|
|
|
sha256 = "0w8ihj9gram2d4wkbki8f6gr8hsd950b3wzfi1qqqm17lqfk8k7h";
|
2020-04-22 14:36:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
future
|
|
|
|
pyyaml
|
|
|
|
jsonlines
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests associated with package
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "CloudFlare" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper for the Cloudflare v4 API";
|
|
|
|
homepage = "https://github.com/cloudflare/python-cloudflare";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|