From 30097aeabc08e10638a004855feeb71338758ce3 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Wed, 5 May 2021 17:42:27 -0400 Subject: [PATCH] python: pythonRemoveTestsDirHook removes /test Some packages have their tests installed at ./test, not just ./tests. This covers that use case by removing both. --- .../interpreters/python/hooks/python-remove-tests-dir-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/hooks/python-remove-tests-dir-hook.sh b/pkgs/development/interpreters/python/hooks/python-remove-tests-dir-hook.sh index 83bea786db6d..ad9e3c07cf24 100644 --- a/pkgs/development/interpreters/python/hooks/python-remove-tests-dir-hook.sh +++ b/pkgs/development/interpreters/python/hooks/python-remove-tests-dir-hook.sh @@ -5,6 +5,7 @@ pythonRemoveTestsDir() { echo "Executing pythonRemoveTestsDir" rm -rf $out/@pythonSitePackages@/tests + rm -rf $out/@pythonSitePackages@/test echo "Finished executing pythonRemoveTestsDir" } @@ -12,4 +13,3 @@ pythonRemoveTestsDir() { if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then postFixupHooks+=(pythonRemoveTestsDir) fi -