depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-dns/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 lines
1,017 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; [ ];
};
}