depot/third_party/nixpkgs/pkgs/development/python-modules/cloudflare/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

55 lines
991 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 = with maintainers; [ ];
};
}