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