python.pkgs.pytest.setupHook: fix cache name, fixes #40273

The cache is not named `.pytest-cache` but `.pytest_cache`.
This commit is contained in:
Frederik Rietdijk 2018-08-05 11:51:03 +02:00
parent 008fd5fcf5
commit 9267b477f1
1 changed files with 2 additions and 2 deletions

View File

@ -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 {} +'
) )
''; '';