python3Packages.cloudflare: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-02 22:56:56 +02:00 committed by GitHub
parent 569cdd47fa
commit b85bfe9989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,15 +7,19 @@
, future
, pyyaml
, jsonlines
, pythonOlder
}:
buildPythonPackage rec {
pname = "cloudflare";
version = "2.9.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-rIIzwsGQidTRqE0eba7X/xicsMtWPxZ2PCGr6OUy+7U=";
hash = "sha256-rIIzwsGQidTRqE0eba7X/xicsMtWPxZ2PCGr6OUy+7U=";
};
propagatedBuildInputs = [
@ -29,12 +33,15 @@ buildPythonPackage rec {
# no tests associated with package
doCheck = false;
pythonImportsCheck = [ "CloudFlare" ];
pythonImportsCheck = [
"CloudFlare"
];
meta = with lib; {
description = "Python wrapper for the Cloudflare v4 API";
homepage = "https://github.com/cloudflare/python-cloudflare";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}