1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-core
6, pytestCheckHook
7, mock
8}:
9
10buildPythonPackage rec {
11 pname = "google-cloud-dns";
12 version = "0.34.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-RPpi7pPFHGxXIWBY2S0qkRa3E6SocanRajqDuZ4wwfk=";
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 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}