python.pkgs.pytest.setupHook: fix cache name, fixes #40273
The cache is not named `.pytest-cache` but `.pytest_cache`.
This commit is contained in:
parent
008fd5fcf5
commit
9267b477f1
|
@ -27,10 +27,10 @@ buildPythonPackage rec {
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Remove .pytest-cache when using py.test in a Nix build
|
# Remove .pytest_cache when using py.test in a Nix build
|
||||||
setupHook = writeText "pytest-hook" ''
|
setupHook = writeText "pytest-hook" ''
|
||||||
postFixupHooks+=(
|
postFixupHooks+=(
|
||||||
'find $out -name .pytest-cache -type d -exec rm -rf {} +'
|
'find $out -name .pytest_cache -type d -exec rm -rf {} +'
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue