Files
nixpkgs/pkgs/development/python-modules/cloudflare/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

53 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 = [ ];
};
}