pythonPackages.google_cloud_dns: Cleanups, fix tests

+15 -7
+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 - , pytest 6 + , pytestCheckHook 7 7 , mock 8 8 }: 9 9 ··· 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; 16 - sha256 = "7264e58067b55535ee859e124bd3da29337698ef6bb293da667d0316ddbe8606"; 16 + sha256 = "01l6pvfic0vxcvd97ckbxyc7ccr9vb9ln4lyhpp3amdmcy0far3j"; 17 17 }; 18 18 19 - checkInputs = [ pytest mock ]; 20 19 propagatedBuildInputs = [ google_api_core google_cloud_core ]; 21 20 22 - checkPhase = '' 21 + checkInputs = [ mock pytestCheckHook ]; 22 + 23 + preCheck = '' 24 + # don#t shadow python imports 23 25 rm -r google 24 - pytest tests/unit 25 26 ''; 26 27 28 + disabledTests = [ 29 + # requires credentials 30 + "test_quota" 31 + ]; 32 + 33 + pythonImportsCheck = [ "google.cloud.dns" ]; 34 + 27 35 meta = with stdenv.lib; { 28 36 description = "Google Cloud DNS API client library"; 29 - homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 37 + homepage = "https://github.com/googleapis/python-dns"; 30 38 license = licenses.asl20; 31 - maintainers = [ maintainers.costrouc ]; 39 + maintainers = with maintainers; [ SuperSandro2000 ]; 32 40 }; 33 41 }