Merge pull request 'don't propagate python libraries into a devshell' (#364) from Mic92-main into main
All checks were successful
checks-impure / test (push) Successful in 8s
checks / test (push) Successful in 22s
assets1 / test (push) Successful in 6s

This commit is contained in:
clan-bot 2023-09-28 10:00:46 +00:00
commit 2abaab401d

View File

@ -146,6 +146,11 @@ python3.pkgs.buildPythonApplication {
installShellCompletion --fish --name clan.fish \
<(${argcomplete}/bin/register-python-argcomplete --shell fish clan)
'';
# Don't leak python packages into a devshell.
# It can be very confusing if you `nix run` than than load the cli from the devshell instead.
postFixup = ''
rm $out/nix-support/propagated-build-inputs
'';
checkPhase = ''
PYTHONPATH= $out/bin/clan --help
if grep --include \*.py -Rq "breakpoint()" $out; then