depot/third_party/nixpkgs/pkgs/development/python-modules/cloudflare/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

52 lines
973 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
requests,
pyyaml,
jsonlines,
pythonOlder,
pytestCheckHook,
pytz,
}:
buildPythonPackage rec {
pname = "cloudflare";
version = "2.20.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Rq78Od+qI2XWObQjzsLNU1CuERU8ckfT6zVFvc8Bpoo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
requests
pyyaml
jsonlines
];
# tests require networking
doCheck = false;
pythonImportsCheck = [ "CloudFlare" ];
nativeCheckInputs = [
pytestCheckHook
pytz
];
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;
mainProgram = "cli4";
maintainers = [ ];
};
}