nixpkgs/pkgs/development/python-modules/google-cloud-container/default.nix

43 lines
958 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc-google-iam-v1
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-container";
version = "2.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "3804e37865b4d63ac39eac3f8f184225db16bbc69f201b4d54abe6b68f170e60";
};
propagatedBuildInputs = [ google-api-core grpc-google-iam-v1 libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# requires credentials
"test_list_clusters"
];
pythonImportsCheck = [
"google.cloud.container"
"google.cloud.container_v1"
"google.cloud.container_v1beta1"
];
meta = with lib; {
description = "Google Container Engine API client library";
homepage = "https://github.com/googleapis/python-container";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}