pythonPackages.google_cloud_dataproc: Cleanups
This commit is contained in:
parent
557dbd85e8
commit
8b485811f2
@ -2,10 +2,11 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, google_api_core
|
, google_api_core
|
||||||
, pytest
|
|
||||||
, mock
|
, mock
|
||||||
, libcst
|
, libcst
|
||||||
, proto-plus
|
, proto-plus
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -14,20 +15,28 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "81c44ac114c94df8f5b21245e5e7fc4eabce66b25fc432c3696b62b5de143b1f";
|
sha256 = "07rv2kgbaqkbd71k5i2zn9kcxasfzkkyai8jnbszhkf92k0lmi41";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
|
||||||
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
|
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
||||||
pytest tests/unit
|
|
||||||
'';
|
disabledTests = [
|
||||||
|
# requires credentials
|
||||||
|
"test_list_clusters"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"google.cloud.dataproc"
|
||||||
|
"google.cloud.dataproc_v1"
|
||||||
|
"google.cloud.dataproc_v1beta2"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Google Cloud Dataproc API client library";
|
description = "Google Cloud Dataproc API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user