Files
nixpkgs/pkgs/development/python-modules/google-cloud-dns/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1010 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
google-cloud-core,
mock,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-dns";
version = "0.36.0";
pyproject = true;
src = fetchPypi {
pname = "google_cloud_dns";
inherit version;
hash = "sha256-SwpOx2wnOQHUixtzEyw/3NMYdIUMpkJM115tYxrjcR4=";
};
build-system = [ setuptools ];
dependencies = [
google-api-core
google-cloud-core
];
nativeCheckInputs = [
mock
pytestCheckHook
];
preCheck = ''
# don#t shadow python imports
rm -r google
'';
disabledTests = [
# Test requires credentials
"test_quota"
];
pythonImportsCheck = [ "google.cloud.dns" ];
meta = {
description = "Google Cloud DNS API client library";
homepage = "https://github.com/googleapis/python-dns";
changelog = "https://github.com/googleapis/python-dns/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
}