mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
paperless-ngx: re-add xdist (#364966)
This commit is contained in:
commit
861f0baf72
@ -161,9 +161,12 @@ python.pkgs.buildPythonApplication rec {
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# pytest-xdist makes the tests flaky
|
||||
# pytest-xdist with to many threads makes the tests flaky
|
||||
if (( $NIX_BUILD_CORES > 4)); then
|
||||
NIX_BUILD_CORES=4
|
||||
fi
|
||||
substituteInPlace src/setup.cfg \
|
||||
--replace-fail "--numprocesses auto --maxprocesses=16" ""
|
||||
--replace-fail "--numprocesses auto --maxprocesses=16" "--numprocesses $NIX_BUILD_CORES"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -277,9 +280,13 @@ python.pkgs.buildPythonApplication rec {
|
||||
pytest-httpx
|
||||
pytest-mock
|
||||
pytest-rerunfailures
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# manually managed in postPatch
|
||||
dontUsePytestXdist = false;
|
||||
|
||||
pytestFlagsArray = [
|
||||
"src"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user