Unverified Commit b85bfe99 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.cloudflare: disable on older Python releases

parent 569cdd47
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -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 ];
  };
}