Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-compute / default.nix
blobb705224111ea2a58140ce2b53b784b2bc32b747e
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , google-api-core
6 , mock
7 , proto-plus
8 , protobuf
9 , pytest-asyncio
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "google-cloud-compute";
15   version = "1.14.1";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-rNmHZH18gmqpe0QYFBx0Dq1eiBHTNJMV8viaMMAcf0s=";
23   };
25   propagatedBuildInputs = [
26     google-api-core
27     proto-plus
28     protobuf
29   ] ++ google-api-core.optional-dependencies.grpc;
31   nativeCheckInputs = [
32     mock
33     pytest-asyncio
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [
38     "google.cloud.compute"
39     "google.cloud.compute_v1"
40   ];
42   # disable tests that require credentials
43   disabledTestPaths = [
44     "tests/system/test_addresses.py"
45     "tests/system/test_instance_group.py"
46     "tests/system/test_pagination.py"
47     "tests/system/test_smoke.py"
48   ];
50   meta = with lib; {
51     description = "API Client library for Google Cloud Compute";
52     homepage = "https://github.com/googleapis/python-compute";
53     changelog = "https://github.com/googleapis/python-compute/blob/v${version}/CHANGELOG.md";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ jpetrucciani ];
56   };