Unverified Commit 61e7bee4 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #287570 from r-ryantm/auto-update/python311Packages.cloudflare

python311Packages.cloudflare: 2.17.0 -> 2.18.0
parents 23942104 e98791a2
Loading
Loading
Loading
Loading
+17 −8
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, setuptools
, requests
, future
, pyyaml
, jsonlines
, pythonOlder
, pytestCheckHook
, pytz
}:

buildPythonPackage rec {
  pname = "cloudflare";
  version = "2.17.0";
  format = "setuptools";
  version = "2.18.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-B2jTIYRKrMu+PXf3zifxW5NW3/rIHqlPrgErObuO6D4=";
    hash = "sha256-dTD9HO26elFdfNMJxlyK1jKf4xWcz98/XrKI3EpUSsc=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    attrs
    requests
    future
    pyyaml
    jsonlines
  ];

  # no tests associated with package
  # tests require networking
  doCheck = false;

  pythonImportsCheck = [
    "CloudFlare"
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytz
  ];

  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;
    mainProgram = "cli4";
    maintainers = with maintainers; [ ];
  };
}