pythonPackages:google*: Noramlize names by replacing _ with -
This commit is contained in:
41
pkgs/development/python-modules/google-cloud-dns/default.nix
Normal file
41
pkgs/development/python-modules/google-cloud-dns/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ stdenv
|
||||
, 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 stdenv.lib; {
|
||||
description = "Google Cloud DNS API client library";
|
||||
homepage = "https://github.com/googleapis/python-dns";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user