python311Packages.gremlinpython: disable on unsupported Python releases

- add format
This commit is contained in:
Fabian Affolter 2023-05-13 22:15:13 +02:00 committed by GitHub
parent 073eb59305
commit d76fb6f21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@
, isodate
, nest-asyncio
, pytestCheckHook
, pythonOlder
, mock
, pyhamcrest
, radish-bdd
@ -15,12 +16,14 @@
buildPythonPackage rec {
pname = "gremlinpython";
version = "3.6.3";
format = "setuptools";
disabled = pythonOlder "3.7";
# pypi tarball doesn't include tests
src = fetchFromGitHub {
owner = "apache";
repo = "tinkerpop";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-CmVWaRebJaZHJGzhaBdYXPF3BZ8+Cvc5P/KOpsG+dX4=";
};
@ -30,7 +33,6 @@ buildPythonPackage rec {
sed -i '/pytest-runner/d' setup.py
substituteInPlace setup.py \
--replace 'aiohttp>=3.8.0,<=3.8.1' 'aiohttp' \
--replace 'importlib-metadata<5.0.0' 'importlib-metadata' \
--replace "os.getenv('VERSION', '?').replace('-SNAPSHOT', '.dev-%d' % timestamp)" '"${version}"'
'';