1{ lib
2, buildPythonPackage
3, fetchPypi
4, attrs
5, beautifulsoup4
6, requests
7, future
8, pyyaml
9, jsonlines
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "cloudflare";
15 version = "2.11.6";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-ZTHUyvFguvME0Jl0JRzwWmJOaWPUz4RFeMEVTvupb14=";
23 };
24
25 propagatedBuildInputs = [
26 attrs
27 beautifulsoup4
28 requests
29 future
30 pyyaml
31 jsonlines
32 ];
33
34 # no tests associated with package
35 doCheck = false;
36
37 pythonImportsCheck = [
38 "CloudFlare"
39 ];
40
41 meta = with lib; {
42 description = "Python wrapper for the Cloudflare v4 API";
43 homepage = "https://github.com/cloudflare/python-cloudflare";
44 changelog = "https://github.com/cloudflare/python-cloudflare/blob/${version}/CHANGELOG.md";
45 license = licenses.mit;
46 maintainers = with maintainers; [ costrouc ];
47 };
48}