Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-resource-manager / default.nix
blob50f605f5fc99ef1aa1bd8b64b03a94afd85d653c
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , google-cloud-core
6 , grpc-google-iam-v1
7 , proto-plus
8 , protobuf
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "google-cloud-resource-manager";
16   version = "1.10.4";
17   format = "setuptools";
19   disabled = pythonOlder "3.6";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-RWsl3do9TNJ0iKcnNrvDrwTXE64v42VcAbZqM50o1nk=";
24   };
26   propagatedBuildInputs = [
27     google-api-core
28     google-cloud-core
29     grpc-google-iam-v1
30     proto-plus
31     protobuf
32   ] ++ google-api-core.optional-dependencies.grpc;
34   nativeCheckInputs = [
35     pytest-asyncio
36     pytestCheckHook
37   ];
39   # prevent google directory from shadowing google imports
40   preCheck = ''
41     rm -r google
42   '';
44   pythonImportsCheck = [
45     "google.cloud.resourcemanager"
46     "google.cloud.resourcemanager_v3"
47   ];
49   meta = with lib; {
50     description = "Google Cloud Resource Manager API client library";
51     homepage = "https://github.com/googleapis/python-resource-manager";
52     changelog = "https://github.com/googleapis/python-resource-manager/blob/v${version}/CHANGELOG.md";
53     license = licenses.asl20;
54     maintainers = with maintainers; [ ];
55   };