mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00

This hook should fix common mistakes like installing `tests` in site-packages which leads to collisions.
8 lines
227 B
Bash
8 lines
227 B
Bash
poetry2nix-fixup-hook() {
|
|
# Including tests in the output is a common mistake
|
|
if [ -z "${dontFixupTests-}" ]; then
|
|
rm -rf $out/lib/python3.7/site-packages/tests
|
|
fi
|
|
}
|
|
|
|
postFixupHooks+=(poetry2nix-fixup-hook)
|