python3Packages.cloudflare: disable on older Python releases
This commit is contained in:
parent
569cdd47fa
commit
b85bfe9989
|
@ -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 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue