tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.google_cloud_bigquery: Cleanups
Sandro Jäckel
5 years ago
692345a5
00d60561
+30
-19
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
google_cloud_bigquery
default.nix
+30
-19
pkgs/development/python-modules/google_cloud_bigquery/default.nix
···
1
-
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, freezegun
2
-
, google_api_core, google_cloud_core, google_cloud_testutils
3
-
, google_resumable_media, grpcio, ipython, mock, pandas, proto-plus, pyarrow }:
0
0
0
0
0
0
0
0
0
0
0
0
4
5
buildPythonPackage rec {
6
pname = "google-cloud-bigquery";
···
8
9
src = fetchPypi {
10
inherit pname version;
11
-
sha256 = "1f99fd0c0c5bde999e056a1be666e5d5bbf392f62c9e730dfcbaf6e8408d44ef";
12
};
13
14
-
disabled = pythonOlder "3.6";
15
-
16
-
checkInputs =
17
-
[ freezegun google_cloud_testutils ipython mock pytestCheckHook ];
18
propagatedBuildInputs = [
19
google_resumable_media
20
-
google_api_core
21
google_cloud_core
22
-
pandas
23
proto-plus
24
pyarrow
25
];
26
0
0
0
0
0
0
0
0
0
27
# prevent google directory from shadowing google imports
28
-
# test_magics requires modifying sys.path
29
preCheck = ''
30
rm -r google
31
-
rm tests/unit/test_magics.py
32
'';
33
34
-
# call_api_applying_custom_retry_on_timeout requires credentials
35
-
# to_dataframe_timestamp_out_of_pyarrow_bounds has inconsistent results
36
-
disabledTests = [
37
-
"call_api_applying_custom_retry_on_timeout"
38
-
"to_dataframe_timestamp_out_of_pyarrow_bounds"
39
];
40
41
meta = with stdenv.lib; {
42
description = "Google BigQuery API client library";
43
-
homepage = "https://pypi.org/project/google-cloud-bigquery";
44
license = licenses.asl20;
45
-
maintainers = [ maintainers.costrouc ];
46
};
47
}
···
1
+
{ stdenv
2
+
, buildPythonPackage
3
+
, fetchPypi
4
+
, pytestCheckHook
5
+
, freezegun
6
+
, google_cloud_core
7
+
, google_cloud_testutils
8
+
, google_resumable_media
9
+
, grpcio
10
+
, ipython
11
+
, mock
12
+
, pandas
13
+
, proto-plus
14
+
, pyarrow
15
+
}:
16
17
buildPythonPackage rec {
18
pname = "google-cloud-bigquery";
···
20
21
src = fetchPypi {
22
inherit pname version;
23
+
sha256 = "1vs4im0fixmszh6p77icys9g7fymwmkfc6va0ng9kpjv1h6gv68z";
24
};
25
0
0
0
0
26
propagatedBuildInputs = [
27
google_resumable_media
0
28
google_cloud_core
0
29
proto-plus
30
pyarrow
31
];
32
33
+
checkInputs = [
34
+
freezegun
35
+
google_cloud_testutils
36
+
ipython
37
+
mock
38
+
pandas
39
+
pytestCheckHook
40
+
];
41
+
42
# prevent google directory from shadowing google imports
0
43
preCheck = ''
44
rm -r google
0
45
'';
46
47
+
pythonImportsCheck = [
48
+
"google.cloud.bigquery"
49
+
"google.cloud.bigquery_v2"
0
0
50
];
51
52
meta = with stdenv.lib; {
53
description = "Google BigQuery API client library";
54
+
homepage = "https://github.com/googleapis/python-bigquery";
55
license = licenses.asl20;
56
+
maintainers = with maintainers; [ SuperSandro2000 ];
57
};
58
}