From 9267b477f13587729e35367029df8526b9fdf28f Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 5 Aug 2018 11:51:03 +0200 Subject: [PATCH] python.pkgs.pytest.setupHook: fix cache name, fixes #40273 The cache is not named `.pytest-cache` but `.pytest_cache`. --- pkgs/development/python-modules/pytest/default.nix | 4 ++-- 1 file 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 {} +' ) '';