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