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

This commit is contained in:
Fabian Affolter 2022-03-01 08:45:23 +01:00 committed by GitHub
parent 1dc3d1e7b0
commit 63ea8f44e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,20 +7,32 @@
, proto-plus
, pytestCheckHook
, pytest-asyncio
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-vision";
version = "2.7.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-antpKF6egHtya4g9sKuQLQepz1QRLQ6LiCdpfYBsDh8=";
hash = "sha256-antpKF6egHtya4g9sKuQLQepz1QRLQ6LiCdpfYBsDh8=";
};
propagatedBuildInputs = [ libcst google-api-core proto-plus];
propagatedBuildInputs = [
libcst
google-api-core
proto-plus
];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
checkInputs = [
mock
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [
"google.cloud.vision"