diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-03-17 14:29:47 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-03-18 12:20:51 -0700 |
commit | a9c994ad0bb1f080eee4be9e38f0f1241dd299d7 (patch) | |
tree | d7266aed4883720a73741856597172d569f05f7e /pkgs/development/interpreters/python/mk-python-derivation.nix | |
parent | 16516cec8235a7f1ac63a668ee626534a39d481c (diff) | |
download | nixpkgs-a9c994ad0bb1f080eee4be9e38f0f1241dd299d7.tar nixpkgs-a9c994ad0bb1f080eee4be9e38f0f1241dd299d7.tar.gz nixpkgs-a9c994ad0bb1f080eee4be9e38f0f1241dd299d7.tar.bz2 nixpkgs-a9c994ad0bb1f080eee4be9e38f0f1241dd299d7.tar.lz nixpkgs-a9c994ad0bb1f080eee4be9e38f0f1241dd299d7.tar.xz nixpkgs-a9c994ad0bb1f080eee4be9e38f0f1241dd299d7.tar.zst nixpkgs-a9c994ad0bb1f080eee4be9e38f0f1241dd299d7.zip |
python: add pythonNamespacesHook
Diffstat (limited to 'pkgs/development/interpreters/python/mk-python-derivation.nix')
-rw-r--r-- | pkgs/development/interpreters/python/mk-python-derivation.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 180bc63857c..22938a45585 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -16,6 +16,7 @@ , pipInstallHook , pythonCatchConflictsHook , pythonImportsCheckHook +, pythonNamespacesHook , pythonRemoveBinBytecodeHook , pythonRemoveTestsDirHook , setuptoolsBuildHook @@ -131,6 +132,9 @@ let ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ # This is a test, however, it should be ran independent of the checkPhase and checkInputs pythonImportsCheckHook + ] ++ lib.optionals (python.pythonAtLeast "3.3") [ + # Optionally enforce PEP420 for python3 + pythonNamespacesHook ] ++ nativeBuildInputs; buildInputs = buildInputs ++ pythonPath; |