pythonPackages.google_cloud_container: Cleanups
This commit is contained in:
parent
116e793059
commit
ee7e7c3864
|
@ -1,5 +1,14 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, google_api_core
|
{ stdenv
|
||||||
, grpc_google_iam_v1, libcst, mock, proto-plus, pytest, pytest-asyncio }:
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, google_api_core
|
||||||
|
, grpc_google_iam_v1
|
||||||
|
, libcst
|
||||||
|
, mock
|
||||||
|
, proto-plus
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-container";
|
pname = "google-cloud-container";
|
||||||
|
@ -7,23 +16,28 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0dcd8084dd55c0439ff065d3fb206e2e5c695d3a25effd774b74f8ce43afc911";
|
sha256 = "04f9mx1wxy3l9dvzvvr579fnjp1fdqhgplv5y2gl7h2mvn281k8d";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
propagatedBuildInputs = [ google_api_core grpc_google_iam_v1 libcst proto-plus ];
|
||||||
|
|
||||||
checkInputs = [ mock pytest pytest-asyncio ];
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
||||||
propagatedBuildInputs =
|
|
||||||
[ google_api_core grpc_google_iam_v1 libcst proto-plus ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
pytest tests/unit
|
# requires credentials
|
||||||
'';
|
"test_list_clusters"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"google.cloud.container"
|
||||||
|
"google.cloud.container_v1"
|
||||||
|
"google.cloud.container_v1beta1"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Google Container Engine API client library";
|
description = "Google Container Engine API client library";
|
||||||
homepage = "https://github.com/googleapis/python-container";
|
homepage = "https://github.com/googleapis/python-container";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue