1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-core
6, mock
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "google-cloud-dns";
13 version = "0.34.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-/GG9jPBw6Hqstidi6ypa8VUHBsmIgdeurrru0RKAr9M=";
21 };
22
23 propagatedBuildInputs = [
24 google-api-core
25 google-cloud-core
26 ];
27
28 nativeCheckInputs = [
29 mock
30 pytestCheckHook
31 ];
32
33 preCheck = ''
34 # don#t shadow python imports
35 rm -r google
36 '';
37
38 disabledTests = [
39 # requires credentials
40 "test_quota"
41 ];
42
43 pythonImportsCheck = [
44 "google.cloud.dns"
45 ];
46
47 meta = with lib; {
48 description = "Google Cloud DNS API client library";
49 homepage = "https://github.com/googleapis/python-dns";
50 changelog = "https://github.com/googleapis/python-dns/blob/v${version}/CHANGELOG.md";
51 license = licenses.asl20;
52 maintainers = with maintainers; [ ];
53 };
54}