Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-dataproc / default.nix
blob81a5bb08599c4d8487131d16e4726fc8e346259e
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-api-core
5 , grpc-google-iam-v1
6 , mock
7 , libcst
8 , proto-plus
9 , protobuf
10 , pytestCheckHook
11 , pytest-asyncio
12 , pythonOlder
15 buildPythonPackage rec {
16   pname = "google-cloud-dataproc";
17   version = "5.6.0";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-X6nfuIQzwtDBOLfrtq3hdBA743YszQObJNU8dEjjdg0=";
25   };
27   propagatedBuildInputs = [
28     google-api-core
29     grpc-google-iam-v1
30     libcst
31     proto-plus
32     protobuf
33   ] ++ google-api-core.optional-dependencies.grpc;
35   nativeCheckInputs = [
36     mock
37     pytestCheckHook
38     pytest-asyncio
39   ];
41   disabledTests = [
42     # Test requires credentials
43     "test_list_clusters"
44   ];
46   pythonImportsCheck = [
47     "google.cloud.dataproc"
48     "google.cloud.dataproc_v1"
49   ];
51   meta = with lib; {
52     description = "Google Cloud Dataproc API client library";
53     homepage = "https://github.com/googleapis/python-dataproc";
54     changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-dataproc-v${version}/packages/google-cloud-dataproc/CHANGELOG.md";
55     license = licenses.asl20;
56     maintainers = with maintainers; [ ];
57   };