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