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