mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
google-api-core,
|
|
google-cloud-core,
|
|
mock,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "google-cloud-dns";
|
|
version = "0.37.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "google_cloud_dns";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-MJXO0NRtEGrEa1gvaPtzyVCHZvghttE0g54lwBspIaw=";
|
|
};
|
|
|
|
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://cloud.google.com/dns";
|
|
changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-dns-v${finalAttrs.version}/packages/google-cloud-dns/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
})
|