504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
54 lines
1,013 B
Nix
54 lines
1,013 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, google-api-core
|
|
, google-cloud-core
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-dns";
|
|
version = "0.35.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-CsRNqesPoLEilRPNiIB0q9AhGZLEBCMAr9HBbUFHRVM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
google-api-core
|
|
google-cloud-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
# don#t shadow python imports
|
|
rm -r google
|
|
'';
|
|
|
|
disabledTests = [
|
|
# requires credentials
|
|
"test_quota"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"google.cloud.dns"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|