2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-05 14:50:57 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-testutils
|
2021-08-16 11:54:23 +01:00
|
|
|
, grpc-google-iam-v1
|
2021-11-29 11:16:39 +00:00
|
|
|
, grpcio-status
|
2021-01-05 14:50:57 +00:00
|
|
|
, libcst
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
2018-11-02 19:53:13 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-pubsub";
|
2021-11-14 19:42:57 +00:00
|
|
|
version = "2.9.0";
|
2021-11-29 11:16:39 +00:00
|
|
|
format = "setuptools";
|
2018-11-02 19:53:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-14 19:42:57 +00:00
|
|
|
sha256 = "2b3d9336afab0e5df67201234976519a28da3ccb7c9a0e463be28e2827a9fdaa";
|
2018-11-02 19:53:13 +00:00
|
|
|
};
|
|
|
|
|
2021-06-21 08:09:46 +01:00
|
|
|
propagatedBuildInputs = [
|
2021-08-16 11:54:23 +01:00
|
|
|
grpc-google-iam-v1
|
2021-06-21 08:09:46 +01:00
|
|
|
google-api-core
|
2021-11-29 11:16:39 +00:00
|
|
|
grpcio-status
|
2021-06-21 08:09:46 +01:00
|
|
|
libcst
|
|
|
|
proto-plus
|
|
|
|
];
|
2018-11-02 19:53:13 +00:00
|
|
|
|
2021-06-21 08:09:46 +01:00
|
|
|
checkInputs = [
|
|
|
|
google-cloud-testutils
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2020-11-03 01:16:49 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
2021-01-05 14:50:57 +00:00
|
|
|
# prevent google directory from shadowing google imports
|
2020-11-03 01:16:49 +00:00
|
|
|
rm -r google
|
2018-11-02 19:53:13 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-21 08:09:46 +01:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
|
|
|
|
"tests/unit/pubsub_v1"
|
|
|
|
];
|
|
|
|
|
2020-11-01 22:45:03 +00:00
|
|
|
pythonImportsCheck = [ "google.cloud.pubsub" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 19:53:13 +00:00
|
|
|
description = "Google Cloud Pub/Sub API client library";
|
2020-11-03 01:16:49 +00:00
|
|
|
homepage = "https://pypi.org/project/google-cloud-pubsub";
|
2018-11-02 19:53:13 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 14:50:57 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:53:13 +00:00
|
|
|
};
|
|
|
|
}
|