python3Packages.gremlinpython: 3.7.3 -> 3.8.0

Diff: https://github.com/apache/tinkerpop/compare/3.7.3...3.8.0

Changelog: https://github.com/apache/tinkerpop/blob/3.8.0/CHANGELOG.asciidoc
This commit is contained in:
Robert Schütz
2025-11-15 13:46:10 -08:00
parent ffa908d711
commit 2088569883

View File

@@ -2,9 +2,9 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
aenum, aenum,
aiohttp, aiohttp,
importlib-metadata,
isodate, isodate,
nest-asyncio, nest-asyncio,
pytestCheckHook, pytestCheckHook,
@@ -13,38 +13,46 @@
pyhamcrest, pyhamcrest,
pyyaml, pyyaml,
radish-bdd, radish-bdd,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
__structuredAttrs = true; __structuredAttrs = true;
pname = "gremlinpython"; pname = "gremlinpython";
version = "3.7.3"; version = "3.8.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "apache"; owner = "apache";
repo = "tinkerpop"; repo = "tinkerpop";
tag = version; tag = version;
hash = "sha256-Yc0l3kE+6dM9v4QUZPFpm/yjDCrqVO35Vy5srEjAExE="; hash = "sha256-dslSvtne+0mobjhjZDiO7crQE3aW5wEMWw7l3LkBTV8=";
}; };
sourceRoot = "${src.name}/gremlin-python/src/main/python"; patches = [
(fetchpatch {
name = "remove-async_timeout.pach";
url = "https://github.com/apache/tinkerpop/commit/aa327ace6feaf6ccd3eca411f3b5f6f86f8571f6.patch";
excludes = [ "gremlin-python/src/main/python/setup.py" ];
hash = "sha256-NyXA9vffFem1EzhdNWuoYr7JPkT5DuKyl409LFj9AvQ=";
})
];
postPatch = '' postPatch = ''
sed -i '/pytest-runner/d' setup.py cd gremlin-python/src/main/python
substituteInPlace setup.py \ substituteInPlace gremlin_python/__init__.py \
--replace 'importlib-metadata<5.0.0' 'importlib-metadata' \ --replace-fail ".dev1" ""
--replace "os.getenv('VERSION', '?').replace('-SNAPSHOT', '.dev-%d' % timestamp)" '"${version}"'
''; '';
# setup-requires requirements build-system = [ setuptools ];
nativeBuildInputs = [ importlib-metadata ];
propagatedBuildInputs = [ pythonRemoveDeps = [
"async-timeout"
];
dependencies = [
aenum aenum
aiohttp aiohttp
isodate isodate
@@ -61,7 +69,6 @@ buildPythonPackage rec {
# disable custom pytest report generation # disable custom pytest report generation
preCheck = '' preCheck = ''
substituteInPlace setup.cfg --replace 'addopts' '#addopts'
export TEST_TRANSACTIONS='false' export TEST_TRANSACTIONS='false'
''; '';
@@ -91,6 +98,7 @@ buildPythonPackage rec {
]; ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/apache/tinkerpop/blob/${src.tag}/CHANGELOG.asciidoc";
description = "Gremlin-Python implements Gremlin, the graph traversal language of Apache TinkerPop, within the Python language"; description = "Gremlin-Python implements Gremlin, the graph traversal language of Apache TinkerPop, within the Python language";
homepage = "https://tinkerpop.apache.org/"; homepage = "https://tinkerpop.apache.org/";
license = licenses.asl20; license = licenses.asl20;