mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
42 lines
850 B
Nix
42 lines
850 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, google-api-core
|
|
, google-cloud-core
|
|
, pytestCheckHook
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-dns";
|
|
version = "0.34.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "bd75d6e9fd456ce643ee936a113a1ead5405704515caa679db30d7f036e447f3";
|
|
};
|
|
|
|
propagatedBuildInputs = [ google-api-core google-cloud-core ];
|
|
|
|
checkInputs = [ 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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|