bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
47 lines
823 B
Nix
47 lines
823 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, attrs
|
|
, beautifulsoup4
|
|
, requests
|
|
, future
|
|
, pyyaml
|
|
, jsonlines
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cloudflare";
|
|
version = "2.9.10";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-LsUMB0zqlelHqWsgdmJ8v+Qn/reYuxCTKTODBT9K0bg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
beautifulsoup4
|
|
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 = with maintainers; [ costrouc ];
|
|
};
|
|
}
|