nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 google-cloud-core,
7 mock,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "google-cloud-dns";
14 version = "0.36.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 pname = "google_cloud_dns";
19 inherit version;
20 hash = "sha256-SwpOx2wnOQHUixtzEyw/3NMYdIUMpkJM115tYxrjcR4=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 google-api-core
27 google-cloud-core
28 ];
29
30 nativeCheckInputs = [
31 mock
32 pytestCheckHook
33 ];
34
35 preCheck = ''
36 # don#t shadow python imports
37 rm -r google
38 '';
39
40 disabledTests = [
41 # Test requires credentials
42 "test_quota"
43 ];
44
45 pythonImportsCheck = [ "google.cloud.dns" ];
46
47 meta = {
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 = lib.licenses.asl20;
52 maintainers = [ ];
53 };
54}