3
0
Fork 0
forked from mirrors/nixpkgs

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

This commit is contained in:
Fabian Affolter 2022-03-08 20:50:25 +01:00 committed by Jonathan Ringer
parent 108f4dca28
commit 6d46e381b9

View file

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