Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-bigquery-storage / default.nix
blobce91fa6c6c05829adf36ba6407303d4a8c380071
1 { lib
2 , buildPythonPackage
3 , fastavro
4 , fetchPypi
5 , google-api-core
6 , google-auth
7 , google-cloud-bigquery
8 , pandas
9 , protobuf
10 , pyarrow
11 , pytestCheckHook
12 , pythonOlder
15 buildPythonPackage rec {
16   pname = "google-cloud-bigquery-storage";
17   version = "2.22.0";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-9tjHs6ubV0xml3/O6dM24zStGjhDpyK+GRI2QOeAjqM=";
25   };
27   propagatedBuildInputs = [
28     google-api-core
29     protobuf
30   ] ++ google-api-core.optional-dependencies.grpc;
32   passthru.optional-dependencies = {
33     fastavro = [
34       fastavro
35     ];
36     pandas = [
37       pandas
38     ];
39     pyarrow = [
40       pyarrow
41     ];
42   };
44   nativeCheckInputs = [
45     google-auth
46     google-cloud-bigquery
47     pytestCheckHook
48   ];
50   # Dependency loop with google-cloud-bigquery
51   doCheck = false;
53   preCheck = ''
54     rm -r google
55   '';
57   pythonImportsCheck = [
58     "google.cloud.bigquery_storage"
59     "google.cloud.bigquery_storage_v1"
60     "google.cloud.bigquery_storage_v1beta2"
61   ];
63   meta = with lib; {
64     description = "BigQuery Storage API API client library";
65     homepage = "https://github.com/googleapis/python-bigquery-storage";
66     changelog = "https://github.com/googleapis/python-bigquery-storage/blob/v${version}/CHANGELOG.md";
67     license = licenses.asl20;
68     maintainers = with maintainers; [ ];
69   };