nautilus: fix cross compilation (#373662)
[NixPkgs.git] / pkgs / development / python-modules / cloudflare / default.nix
blob1935151a7898dfaa75ed83ecca1f0a6547c2b937
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   requests,
7   pyyaml,
8   jsonlines,
9   pythonOlder,
10   pytestCheckHook,
11   pytz,
14 buildPythonPackage rec {
15   pname = "cloudflare";
16   version = "2.20.0";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-Rq78Od+qI2XWObQjzsLNU1CuERU8ckfT6zVFvc8Bpoo=";
24   };
26   nativeBuildInputs = [ setuptools ];
28   propagatedBuildInputs = [
29     requests
30     pyyaml
31     jsonlines
32   ];
34   # tests require networking
35   doCheck = false;
37   pythonImportsCheck = [ "CloudFlare" ];
39   nativeCheckInputs = [
40     pytestCheckHook
41     pytz
42   ];
44   meta = with lib; {
45     description = "Python wrapper for the Cloudflare v4 API";
46     homepage = "https://github.com/cloudflare/python-cloudflare";
47     changelog = "https://github.com/cloudflare/python-cloudflare/blob/${version}/CHANGELOG.md";
48     license = licenses.mit;
49     mainProgram = "cli4";
50     maintainers = [ ];
51   };