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.33.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e4aa73fc6ca22764fd7294de19b602dff084d924c77366c136fb9c28e70ae739";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|