depot/third_party/nixpkgs/pkgs/development/python-modules/cloudflare/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

48 lines
919 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, attrs
, beautifulsoup4
, requests
, future
, pyyaml
, jsonlines
, pythonOlder
}:
buildPythonPackage rec {
pname = "cloudflare";
version = "2.11.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ZTHUyvFguvME0Jl0JRzwWmJOaWPUz4RFeMEVTvupb14=";
};
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; [ costrouc ];
};
}