python: add pythonNamespacesHook

This commit is contained in:
Jonathan Ringer
2020-03-17 14:29:47 -07:00
committed by Jon
parent 16516cec82
commit a9c994ad0b
4 changed files with 68 additions and 1 deletions

View File

@@ -89,6 +89,14 @@ in rec {
};
} ./python-imports-check-hook.sh) {};
pythonNamespacesHook = callPackage ({}:
makeSetupHook {
name = "python-namespaces-hook.sh";
substitutions = {
inherit pythonSitePackages;
};
} ./python-namespaces-hook.sh) {};
pythonRemoveBinBytecodeHook = callPackage ({ }:
makeSetupHook {
name = "python-remove-bin-bytecode-hook";