2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, google-api-core
|
|
|
|
, google-cloud-testutils
|
2021-08-18 13:19:15 +00:00
|
|
|
, grpc-google-iam-v1
|
2021-01-09 10:05:03 +00:00
|
|
|
, libcst
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-pubsub";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "2.7.1";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "d52d386617c110c35043f6ff37ccb50d9f37c75b1e5586409ed64a3e8ae61038";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-08-18 13:19:15 +00:00
|
|
|
grpc-google-iam-v1
|
2021-06-28 23:13:55 +00:00
|
|
|
google-api-core
|
|
|
|
libcst
|
|
|
|
proto-plus
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
checkInputs = [
|
|
|
|
google-cloud-testutils
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
|
|
|
|
"tests/unit/pubsub_v1"
|
|
|
|
];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
pythonImportsCheck = [ "google.cloud.pubsub" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Google Cloud Pub/Sub API client library";
|
|
|
|
homepage = "https://pypi.org/project/google-cloud-pubsub";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|