python3Packages.gremlinpython: unbreak
Also organize the imports & remove unnecessary pytestrunner.
This commit is contained in:
parent
a8d4131257
commit
7c6b8698e3
|
@ -1,6 +1,15 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub
|
{ lib
|
||||||
, pytestCheckHook, pyhamcrest, pytestrunner
|
, buildPythonPackage
|
||||||
, six, isodate, tornado, aenum, radish-bdd, mock
|
, fetchFromGitHub
|
||||||
|
, aenum
|
||||||
|
, importlib-metadata
|
||||||
|
, isodate
|
||||||
|
, six
|
||||||
|
, tornado
|
||||||
|
, pytestCheckHook
|
||||||
|
, mock
|
||||||
|
, pyhamcrest
|
||||||
|
, radish-bdd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -22,13 +31,28 @@ buildPythonPackage rec {
|
||||||
--replace 'PyHamcrest>=1.9.0,<2.0.0' 'PyHamcrest' \
|
--replace 'PyHamcrest>=1.9.0,<2.0.0' 'PyHamcrest' \
|
||||||
--replace 'radish-bdd==0.8.6' 'radish-bdd' \
|
--replace 'radish-bdd==0.8.6' 'radish-bdd' \
|
||||||
--replace 'mock>=3.0.5,<4.0.0' 'mock' \
|
--replace 'mock>=3.0.5,<4.0.0' 'mock' \
|
||||||
--replace 'pytest>=4.6.4,<5.0.0' 'pytest'
|
--replace 'pytest>=4.6.4,<5.0.0' 'pytest' \
|
||||||
|
--replace 'importlib-metadata<3.0.0' 'importlib-metadata' \
|
||||||
|
--replace 'pytest-runner==5.2' ' '
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ]; # simply to placate requirements
|
# setup-requires requirements
|
||||||
propagatedBuildInputs = [ six isodate tornado aenum ];
|
nativeBuildInputs = [
|
||||||
|
importlib-metadata
|
||||||
|
];
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aenum
|
||||||
|
isodate
|
||||||
|
six
|
||||||
|
tornado
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook pyhamcrest radish-bdd mock ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
mock
|
||||||
|
pyhamcrest
|
||||||
|
radish-bdd
|
||||||
|
];
|
||||||
|
|
||||||
# disable custom pytest report generation
|
# disable custom pytest report generation
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
@ -36,12 +60,14 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# many tests expect a running tinkerpop server
|
# many tests expect a running tinkerpop server
|
||||||
|
disabledTestPaths = [
|
||||||
|
"tests/driver/test_client.py"
|
||||||
|
"tests/driver/test_driver_remote_connection.py"
|
||||||
|
"tests/driver/test_driver_remote_connection_threaded.py"
|
||||||
|
"tests/process/test_dsl.py"
|
||||||
|
"tests/structure/io/test_functionalityio.py"
|
||||||
|
];
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--ignore=tests/driver/test_client.py"
|
|
||||||
"--ignore=tests/driver/test_driver_remote_connection.py"
|
|
||||||
"--ignore=tests/driver/test_driver_remote_connection_threaded.py"
|
|
||||||
"--ignore=tests/process/test_dsl.py"
|
|
||||||
"--ignore=tests/structure/io/test_functionalityio.py"
|
|
||||||
# disabledTests doesn't quite allow us to be precise enough for this
|
# disabledTests doesn't quite allow us to be precise enough for this
|
||||||
"-k 'not (TestFunctionalGraphSONIO and (test_timestamp or test_datetime or test_uuid))'"
|
"-k 'not (TestFunctionalGraphSONIO and (test_timestamp or test_datetime or test_uuid))'"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue