python310Packages.google-cloud-logging: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-05-24 09:54:02 +02:00 committed by GitHub
parent 60be290e1f
commit acf69be951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,22 +12,21 @@
, proto-plus
, pytestCheckHook
, pytest-asyncio
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-logging";
version = "3.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-YjR2pdEWEWh84nixN/lDO4HssDlNN8CfhX1TOmBnsQs=";
hash = "sha256-YjR2pdEWEWh84nixN/lDO4HssDlNN8CfhX1TOmBnsQs=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "google-cloud-appengine-logging >= 0.1.0, < 1.0.0dev" "google-cloud-appengine-logging >= 0.1.0"
'';
propagatedBuildInputs = [
google-api-core
google-cloud-appengine-logging