forked from mirrors/nixpkgs
python3Packages.google-cloud-language: disable on older Python releases
This commit is contained in:
parent
108f4dca28
commit
6d46e381b9
|
@ -7,20 +7,32 @@
|
|||
, proto-plus
|
||||
, pytestCheckHook
|
||||
, pytest-asyncio
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-language";
|
||||
version = "2.4.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
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 = [
|
||||
"google.cloud.language"
|
||||
|
|
Loading…
Reference in a new issue