summary refs log tree commit diff
path: root/pkgs/development/tools/poetry2nix/poetry2nix/hooks/fixup-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/poetry2nix/poetry2nix/hooks/fixup-hook.sh')
-rw-r--r--pkgs/development/tools/poetry2nix/poetry2nix/hooks/fixup-hook.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/pkgs/development/tools/poetry2nix/poetry2nix/hooks/fixup-hook.sh b/pkgs/development/tools/poetry2nix/poetry2nix/hooks/fixup-hook.sh
deleted file mode 100644
index 8cbe2b178c7..00000000000
--- a/pkgs/development/tools/poetry2nix/poetry2nix/hooks/fixup-hook.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-poetry2nix-fixup-hook() {
-
-    # Including tests in the output is a common mistake
-    if [ -z "${dontFixupTests-}" ]; then
-        rm -rf $out/@pythonSitePackages@/tests
-    fi
-
-    # Including files in site-packages is a common packaging mistake
-    #
-    # While we cannot remove all normal files dumped in site-packages
-    # we can clean up some common mistakes
-    if [ -z "${dontFixupSitePackages-}" ]; then
-        for f in @filenames@; do
-            rm -f $out/@pythonSitePackages@/$f
-        done
-    fi
-
-}
-
-postFixupHooks+=(poetry2nix-fixup-hook)