Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-core / default.nix
blob091729e95f6990654100d1d4a1c7148aba51a950
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , google-auth
6 , grpcio
7 , mock
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "google-cloud-core";
14   version = "2.3.3";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-N7gCc8jX7uGugWs6IK5DWF6lBQbLDmDzz1vl+H8Tc8s=";
22   };
24   propagatedBuildInputs = [
25     google-auth
26     google-api-core
27   ];
29   passthru.optional-dependencies = {
30     grpc = [
31       grpcio
32     ];
33   };
35   nativeCheckInputs = [
36     mock
37     pytestCheckHook
38   ] ++ passthru.optional-dependencies.grpc;
40   # prevent google directory from shadowing google imports
41   preCheck = ''
42     rm -r google
43   '';
45   pythonImportsCheck = [
46     "google.cloud"
47   ];
49   meta = with lib; {
50     description = "API Client library for Google Cloud: Core Helpers";
51     homepage = "https://github.com/googleapis/python-cloud-core";
52     changelog = "https://github.com/googleapis/python-cloud-core/blob/v${version}/CHANGELOG.md";
53     license = licenses.asl20;
54     maintainers = with maintainers; [ ];
55   };