3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/google-cloud-dns/default.nix
2021-01-25 18:31:47 +01:00

42 lines
838 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, google-cloud-core
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-dns";
version = "0.32.1";
src = fetchPypi {
inherit pname version;
sha256 = "01l6pvfic0vxcvd97ckbxyc7ccr9vb9ln4lyhpp3amdmcy0far3j";
};
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 ];
};
}