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
1
-
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, freezegun
2
2
-
, google_api_core, google_cloud_core, google_cloud_testutils
3
3
-
, google_resumable_media, grpcio, ipython, mock, pandas, proto-plus, pyarrow }:
1
1
+
{ stdenv
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, pytestCheckHook
5
5
+
, freezegun
6
6
+
, google_cloud_core
7
7
+
, google_cloud_testutils
8
8
+
, google_resumable_media
9
9
+
, grpcio
10
10
+
, ipython
11
11
+
, mock
12
12
+
, pandas
13
13
+
, proto-plus
14
14
+
, pyarrow
15
15
+
}:
4
16
5
17
buildPythonPackage rec {
6
18
pname = "google-cloud-bigquery";
···
8
20
9
21
src = fetchPypi {
10
22
inherit pname version;
11
11
-
sha256 = "1f99fd0c0c5bde999e056a1be666e5d5bbf392f62c9e730dfcbaf6e8408d44ef";
23
23
+
sha256 = "1vs4im0fixmszh6p77icys9g7fymwmkfc6va0ng9kpjv1h6gv68z";
12
24
};
13
25
14
14
-
disabled = pythonOlder "3.6";
15
15
-
16
16
-
checkInputs =
17
17
-
[ freezegun google_cloud_testutils ipython mock pytestCheckHook ];
18
26
propagatedBuildInputs = [
19
27
google_resumable_media
20
20
-
google_api_core
21
28
google_cloud_core
22
22
-
pandas
23
29
proto-plus
24
30
pyarrow
25
31
];
26
32
33
33
+
checkInputs = [
34
34
+
freezegun
35
35
+
google_cloud_testutils
36
36
+
ipython
37
37
+
mock
38
38
+
pandas
39
39
+
pytestCheckHook
40
40
+
];
41
41
+
27
42
# prevent google directory from shadowing google imports
28
28
-
# test_magics requires modifying sys.path
29
43
preCheck = ''
30
44
rm -r google
31
31
-
rm tests/unit/test_magics.py
32
45
'';
33
46
34
34
-
# call_api_applying_custom_retry_on_timeout requires credentials
35
35
-
# to_dataframe_timestamp_out_of_pyarrow_bounds has inconsistent results
36
36
-
disabledTests = [
37
37
-
"call_api_applying_custom_retry_on_timeout"
38
38
-
"to_dataframe_timestamp_out_of_pyarrow_bounds"
47
47
+
pythonImportsCheck = [
48
48
+
"google.cloud.bigquery"
49
49
+
"google.cloud.bigquery_v2"
39
50
];
40
51
41
52
meta = with stdenv.lib; {
42
53
description = "Google BigQuery API client library";
43
43
-
homepage = "https://pypi.org/project/google-cloud-bigquery";
54
54
+
homepage = "https://github.com/googleapis/python-bigquery";
44
55
license = licenses.asl20;
45
45
-
maintainers = [ maintainers.costrouc ];
56
56
+
maintainers = with maintainers; [ SuperSandro2000 ];
46
57
};
47
58
}