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
|
, 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"
|
||||||
|
|
Loading…
Reference in a new issue