diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-08-05 11:51:03 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-08-05 11:56:21 +0200 |
commit | 9267b477f13587729e35367029df8526b9fdf28f (patch) | |
tree | 0838e83ed7ff4735d0de07a244f34a0ad0832998 /pkgs/development/python-modules/pytest | |
parent | 008fd5fcf5f45c6478ccd3d52ec923052eccb932 (diff) | |
download | nixpkgs-9267b477f13587729e35367029df8526b9fdf28f.tar nixpkgs-9267b477f13587729e35367029df8526b9fdf28f.tar.gz nixpkgs-9267b477f13587729e35367029df8526b9fdf28f.tar.bz2 nixpkgs-9267b477f13587729e35367029df8526b9fdf28f.tar.lz nixpkgs-9267b477f13587729e35367029df8526b9fdf28f.tar.xz nixpkgs-9267b477f13587729e35367029df8526b9fdf28f.tar.zst nixpkgs-9267b477f13587729e35367029df8526b9fdf28f.zip |
python.pkgs.pytest.setupHook: fix cache name, fixes #40273
The cache is not named `.pytest-cache` but `.pytest_cache`.
Diffstat (limited to 'pkgs/development/python-modules/pytest')
-rw-r--r-- | pkgs/development/python-modules/pytest/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pytest/default.nix b/pkgs/development/python-modules/pytest/default.nix index 5fda0994010..0e3f89fa152 100644 --- a/pkgs/development/python-modules/pytest/default.nix +++ b/pkgs/development/python-modules/pytest/default.nix @@ -27,10 +27,10 @@ buildPythonPackage rec { 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" '' postFixupHooks+=( - 'find $out -name .pytest-cache -type d -exec rm -rf {} +' + 'find $out -name .pytest_cache -type d -exec rm -rf {} +' ) ''; |