2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-dns";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.32.3";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "bbb1c855524bd3f0f2a3b3db883af0d3f618befb976aa694d7e507dd68fc7a71";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Google Cloud DNS API client library";
|
|
|
|
homepage = "https://github.com/googleapis/python-dns";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|