summary refs log tree commit diff
path: root/pkgs/development/tools/poetry2nix/poetry2nix/hooks/fixup-hook.sh
blob: fc539e4298c61e89b79dcb2d800709f66a82910e (plain) (blame)
1
2
3
4
5
6
7
8
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)