pythonPackages.google_cloud_pubsub: Cleanups

This commit is contained in:
Sandro Jäckel 2021-01-05 15:50:57 +01:00
parent b7af3508d5
commit 414f4f4ac9
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,6 +1,15 @@
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook { stdenv
, google_api_core, google_cloud_testutils, grpc_google_iam_v1, libcst, mock , buildPythonPackage
, proto-plus, pytest-asyncio }: , fetchPypi
, pytestCheckHook
, google_api_core
, google_cloud_testutils
, grpc_google_iam_v1
, libcst
, mock
, proto-plus
, pytest-asyncio
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-cloud-pubsub"; pname = "google-cloud-pubsub";
@ -8,19 +17,17 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "bc50a60803f5c409a295ec0e31cdd4acc271611ce3f4963a072036bbfa5ccde5"; sha256 = "1rfdbkxbndi00wx9dx733ihp3hmcsk6k23pcjni0ki7m0c4acl5w";
}; };
disabled = pythonOlder "3.6"; propagatedBuildInputs = [ grpc_google_iam_v1 google_api_core libcst proto-plus ];
checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ]; checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
propagatedBuildInputs =
[ grpc_google_iam_v1 google_api_core libcst proto-plus ];
# prevent google directory from shadowing google imports
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
preCheck = '' preCheck = ''
# prevent google directory from shadowing google imports
rm -r google rm -r google
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
rm -r tests/unit/pubsub_v1 rm -r tests/unit/pubsub_v1
''; '';
@ -30,6 +37,6 @@ buildPythonPackage rec {
description = "Google Cloud Pub/Sub API client library"; description = "Google Cloud Pub/Sub API client library";
homepage = "https://pypi.org/project/google-cloud-pubsub"; homepage = "https://pypi.org/project/google-cloud-pubsub";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }