mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #168017 from risicle/ris-gremlinpython-3.6.0
python3Packages.gremlinpython: 3.5.1 -> 3.6.0
This commit is contained in:
commit
e462c7dbe1
@ -15,25 +15,18 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gremlinpython";
|
||||
version = "3.5.1";
|
||||
version = "3.6.0";
|
||||
|
||||
# pypi tarball doesn't include tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = "tinkerpop";
|
||||
rev = version;
|
||||
sha256 = "1vlhxq0f2hanhkv6f17dxgbwr7gnbnh1kkkq0lxcwkbm2l0rdrlr";
|
||||
sha256 = "0gyf3a0zbh1grc1vr9zzpqm5yfcjvn0f1akw9l1arq36isqwvydn";
|
||||
};
|
||||
sourceRoot = "source/gremlin-python/src/main/python";
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'aenum>=1.4.5,<3.0.0' 'aenum' \
|
||||
--replace 'aiohttp>=3.7.0,<=3.7.4' 'aiohttp' \
|
||||
--replace 'PyHamcrest>=1.9.0,<2.0.0' 'PyHamcrest' \
|
||||
--replace 'radish-bdd==0.8.6' 'radish-bdd' \
|
||||
--replace 'mock>=3.0.5,<4.0.0' 'mock' \
|
||||
--replace 'pytest>=4.6.4,<5.0.0' 'pytest' \
|
||||
--replace 'importlib-metadata<3.0.0' 'importlib-metadata' \
|
||||
--replace 'pytest-runner==5.2' ' '
|
||||
'';
|
||||
|
||||
@ -59,6 +52,7 @@ buildPythonPackage rec {
|
||||
# disable custom pytest report generation
|
||||
preCheck = ''
|
||||
substituteInPlace setup.cfg --replace 'addopts' '#addopts'
|
||||
export TEST_TRANSACTIONS='false'
|
||||
'';
|
||||
|
||||
# many tests expect a running tinkerpop server
|
||||
|
Loading…
Reference in New Issue
Block a user