tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.google_cloud_dns: Cleanups, fix tests
Sandro Jäckel
5 years ago
baa35df4
8e364d01
+15
-7
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
google_cloud_dns
default.nix
+15
-7
pkgs/development/python-modules/google_cloud_dns/default.nix
···
3
3
, fetchPypi
4
4
, google_api_core
5
5
, google_cloud_core
6
6
-
, pytest
6
6
+
, pytestCheckHook
7
7
, mock
8
8
}:
9
9
···
13
13
14
14
src = fetchPypi {
15
15
inherit pname version;
16
16
-
sha256 = "7264e58067b55535ee859e124bd3da29337698ef6bb293da667d0316ddbe8606";
16
16
+
sha256 = "01l6pvfic0vxcvd97ckbxyc7ccr9vb9ln4lyhpp3amdmcy0far3j";
17
17
};
18
18
19
19
-
checkInputs = [ pytest mock ];
20
19
propagatedBuildInputs = [ google_api_core google_cloud_core ];
21
20
22
22
-
checkPhase = ''
21
21
+
checkInputs = [ mock pytestCheckHook ];
22
22
+
23
23
+
preCheck = ''
24
24
+
# don#t shadow python imports
23
25
rm -r google
24
24
-
pytest tests/unit
25
26
'';
26
27
28
28
+
disabledTests = [
29
29
+
# requires credentials
30
30
+
"test_quota"
31
31
+
];
32
32
+
33
33
+
pythonImportsCheck = [ "google.cloud.dns" ];
34
34
+
27
35
meta = with stdenv.lib; {
28
36
description = "Google Cloud DNS API client library";
29
29
-
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
37
37
+
homepage = "https://github.com/googleapis/python-dns";
30
38
license = licenses.asl20;
31
31
-
maintainers = [ maintainers.costrouc ];
39
39
+
maintainers = with maintainers; [ SuperSandro2000 ];
32
40
};
33
41
}