16 buildPythonPackage rec {
17 pname = "gremlinpython";
19 format = "setuptools";
21 disabled = pythonOlder "3.7";
23 src = fetchFromGitHub {
26 rev = "refs/tags/${version}";
27 hash = "sha256-SQ+LcHeHDB1Hd5wXGDJBZmBG4KEZ3NsV4+4X9WgPb9E=";
30 sourceRoot = "${src.name}/gremlin-python/src/main/python";
33 sed -i '/pytest-runner/d' setup.py
35 substituteInPlace setup.py \
36 --replace 'importlib-metadata<5.0.0' 'importlib-metadata' \
37 --replace "os.getenv('VERSION', '?').replace('-SNAPSHOT', '.dev-%d' % timestamp)" '"${version}"'
40 # setup-requires requirements
45 propagatedBuildInputs = [
59 # disable custom pytest report generation
61 substituteInPlace setup.cfg --replace 'addopts' '#addopts'
62 export TEST_TRANSACTIONS='false'
65 # many tests expect a running tinkerpop server
67 "tests/driver/test_client.py"
68 "tests/driver/test_driver_remote_connection.py"
69 "tests/driver/test_driver_remote_connection_threaded.py"
70 "tests/process/test_dsl.py"
71 "tests/structure/io/test_functionalityio.py"
74 # disabledTests doesn't quite allow us to be precise enough for this
75 "-k 'not (TestFunctionalGraphSONIO and (test_timestamp or test_datetime or test_uuid))'"
79 description = "Gremlin-Python implements Gremlin, the graph traversal language of Apache TinkerPop, within the Python language";
80 homepage = "https://tinkerpop.apache.org/";
81 license = licenses.asl20;
82 maintainers = with maintainers; [ ris ];