2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-11-02 19:16:20 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
2021-01-05 22:39:27 +00:00
|
|
|
, pytestCheckHook
|
2018-11-02 19:16:20 +00:00
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-dns";
|
2020-10-15 15:30:36 +01:00
|
|
|
version = "0.32.1";
|
2018-11-02 19:16:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 22:39:27 +00:00
|
|
|
sha256 = "01l6pvfic0vxcvd97ckbxyc7ccr9vb9ln4lyhpp3amdmcy0far3j";
|
2018-11-02 19:16:20 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core google-cloud-core ];
|
2018-11-02 19:16:20 +00:00
|
|
|
|
2021-01-05 22:39:27 +00:00
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# don#t shadow python imports
|
2020-03-18 22:23:27 +00:00
|
|
|
rm -r google
|
2018-11-02 19:16:20 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-05 22:39:27 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_quota"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "google.cloud.dns" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 19:16:20 +00:00
|
|
|
description = "Google Cloud DNS API client library";
|
2021-01-05 22:39:27 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-dns";
|
2018-11-02 19:16:20 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 22:39:27 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:16:20 +00:00
|
|
|
};
|
|
|
|
}
|