2020-05-03 17:38:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-02-20 05:27:41 +00:00
|
|
|
, attrs
|
2020-09-25 04:45:31 +00:00
|
|
|
, beautifulsoup4
|
2020-05-03 17:38:23 +00:00
|
|
|
, requests
|
|
|
|
, future
|
|
|
|
, pyyaml
|
|
|
|
, jsonlines
|
2022-04-03 18:54:34 +00:00
|
|
|
, pythonOlder
|
2020-05-03 17:38:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudflare";
|
2022-04-03 18:54:34 +00:00
|
|
|
version = "2.9.8";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-03 18:54:34 +00:00
|
|
|
hash = "sha256-rIIzwsGQidTRqE0eba7X/xicsMtWPxZ2PCGr6OUy+7U=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-02-20 05:27:41 +00:00
|
|
|
attrs
|
2020-09-25 04:45:31 +00:00
|
|
|
beautifulsoup4
|
2020-05-03 17:38:23 +00:00
|
|
|
requests
|
|
|
|
future
|
|
|
|
pyyaml
|
|
|
|
jsonlines
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests associated with package
|
|
|
|
doCheck = false;
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"CloudFlare"
|
|
|
|
];
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper for the Cloudflare v4 API";
|
|
|
|
homepage = "https://github.com/cloudflare/python-cloudflare";
|
|
|
|
license = licenses.mit;
|
2022-04-03 18:54:34 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|