python3Packages.sqlalchemy: parallelize tests with xdist
Cuts down the test phase from 11 to 4 minutes on my remote builder.
This commit is contained in:
parent
38cd2a9702
commit
9b1dd33f06
|
@ -2,6 +2,7 @@
|
|||
, mock
|
||||
, pysqlite
|
||||
, pytestCheckHook
|
||||
, pytest_xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -23,9 +24,12 @@ buildPythonPackage rec {
|
|||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest_xdist
|
||||
mock
|
||||
] ++ lib.optional (!isPy3k) pysqlite;
|
||||
|
||||
pytestFlagsArray = [ "-n auto" ];
|
||||
|
||||
postInstall = ''
|
||||
sed -e 's:--max-worker-restart=5::g' -i setup.cfg
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue