python: add pythonRemoveTestsDirHook
This will automatically remove a top-level "tests" directory from being installed.
This commit is contained in:
committed by
Frederik Rietdijk
parent
fe898d5f76
commit
3973a3c79c
@@ -94,6 +94,14 @@ in rec {
|
||||
name = "python-remove-bin-bytecode-hook";
|
||||
} ./python-remove-bin-bytecode-hook.sh) {};
|
||||
|
||||
pythonRemoveTestsDirHook = callPackage ({ }:
|
||||
makeSetupHook {
|
||||
name = "python-remove-tests-dir-hook";
|
||||
substitutions = {
|
||||
inherit pythonSitePackages;
|
||||
};
|
||||
} ./python-remove-tests-dir-hook.sh) {};
|
||||
|
||||
setuptoolsBuildHook = callPackage ({ setuptools, wheel }:
|
||||
makeSetupHook {
|
||||
name = "setuptools-setup-hook";
|
||||
|
||||
Reference in New Issue
Block a user