pythonPackages.google_cloud_dns: Cleanups, fix tests

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