python3Packages.google-cloud-pubsub: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-07 11:42:39 +02:00 committed by GitHub
parent af8eb674fe
commit 149c8c9929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@
, mock
, proto-plus
, pytest-asyncio
, pythonOlder
}:
buildPythonPackage rec {
@ -17,9 +18,11 @@ buildPythonPackage rec {
version = "2.12.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-5RoIpyVm/y2+6pN4mJPWHbVUwxH6yWI/vIuCVNJU2aw=";
hash = "sha256-5RoIpyVm/y2+6pN4mJPWHbVUwxH6yWI/vIuCVNJU2aw=";
};
propagatedBuildInputs = [
@ -47,7 +50,9 @@ buildPythonPackage rec {
"tests/unit/pubsub_v1"
];
pythonImportsCheck = [ "google.cloud.pubsub" ];
pythonImportsCheck = [
"google.cloud.pubsub"
];
meta = with lib; {
description = "Google Cloud Pub/Sub API client library";