5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
48 lines
910 B
Nix
48 lines
910 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, attrs
|
|
, beautifulsoup4
|
|
, requests
|
|
, future
|
|
, pyyaml
|
|
, jsonlines
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cloudflare";
|
|
version = "2.12.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-UX8ROC6pL8WR82zJupUkPac+aDReUvIh8D1R1ujXhqU=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/cloudflare/python-cloudflare/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|