python3Packages.google_cloud_pubsub: 1.7.0 -> 2.1.0
This commit is contained in:
parent
9324ba634d
commit
24d644de7d
|
@ -1,36 +1,34 @@
|
||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook
|
||||||
, buildPythonPackage
|
, google_api_core, google_cloud_testutils, grpc_google_iam_v1, libcst, mock
|
||||||
, fetchPypi
|
, proto-plus, pytest-asyncio }:
|
||||||
, enum34
|
|
||||||
, grpc_google_iam_v1
|
|
||||||
, google_api_core
|
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-pubsub";
|
pname = "google-cloud-pubsub";
|
||||||
version = "1.7.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "c8d098ebd208d00c8f3bb55eefecd8553e7391d59700426a97d35125f0dcb248";
|
sha256 = "0358g5q4igq1pgy8dznbbkc6y7zf36y4m81hhh8hvzzhaa37vc22";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
disabled = pythonOlder "3.6";
|
||||||
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
|
|
||||||
|
|
||||||
# tests don't clean up file descriptors correctly
|
checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
|
||||||
doCheck = false;
|
propagatedBuildInputs =
|
||||||
checkPhase = ''
|
[ grpc_google_iam_v1 google_api_core libcst proto-plus ];
|
||||||
pytest tests/unit
|
|
||||||
|
# prevent google directory from shadowing google imports
|
||||||
|
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
|
||||||
|
preCheck = ''
|
||||||
|
rm -r google
|
||||||
|
rm -r tests/unit/pubsub_v1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "google.cloud.pubsub" ];
|
pythonImportsCheck = [ "google.cloud.pubsub" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Google Cloud Pub/Sub API client library";
|
description = "Google Cloud Pub/Sub API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://pypi.org/project/google-cloud-pubsub";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue