depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-dns/default.nix

54 lines
1,017 B
Nix
Raw Normal View History

{
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; [ ];
};
}