diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-03-30 01:59:01 -0700 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-05-11 22:12:08 +0200 |
commit | 884436b2548b183c8951f4d31b3e3245d4989efd (patch) | |
tree | f6b1171810d865ed3309e70f5c4f25088ab0d7c0 /pkgs/development/interpreters/python/hooks/pytest-check-hook.sh | |
parent | a0b4e664c01f8f838a774ce897f6cd0976a1a4c6 (diff) | |
download | nixlib-884436b2548b183c8951f4d31b3e3245d4989efd.tar nixlib-884436b2548b183c8951f4d31b3e3245d4989efd.tar.gz nixlib-884436b2548b183c8951f4d31b3e3245d4989efd.tar.bz2 nixlib-884436b2548b183c8951f4d31b3e3245d4989efd.tar.lz nixlib-884436b2548b183c8951f4d31b3e3245d4989efd.tar.xz nixlib-884436b2548b183c8951f4d31b3e3245d4989efd.tar.zst nixlib-884436b2548b183c8951f4d31b3e3245d4989efd.zip |
pythonPackages.pytestCheckHook: disable setuptoolsCheckPhase
Diffstat (limited to 'pkgs/development/interpreters/python/hooks/pytest-check-hook.sh')
-rw-r--r-- | pkgs/development/interpreters/python/hooks/pytest-check-hook.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh index 18f05b6d218c..bfd2bfa75836 100644 --- a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh @@ -46,4 +46,16 @@ function pytestCheckPhase() { if [ -z "${dontUsePytestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then echo "Using pytestCheckPhase" preDistPhases+=" pytestCheckPhase" + + # It's almost always the case that setuptoolsCheckPhase should not be ran + # when the pytestCheckHook is being ran + if [ -z "${useSetuptoolsCheck-}" ]; then + dontUseSetuptoolsCheck=1 + + # Remove command if already injected into preDistPhases + if [[ "$preDistPhases" =~ "setuptoolsCheckPhase" ]]; then + echo "Removing setuptoolsCheckPhase" + preDistPhases=${preDistPhases/setuptoolsCheckPhase/} + fi + fi fi |