mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-15 17:07:25 +03:00
python3Packages.google-cloud-pubsub: disable on older Python releases
This commit is contained in:
parent
af8eb674fe
commit
149c8c9929
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user