diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2022-09-23 15:24:32 +0200 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2022-09-23 22:19:52 +0300 |
commit | 7a41be7b2a21976a6677daa732b1c106e737d4b9 (patch) | |
tree | f3e5d294181da15c06d2ee9d0e4f77a8ff6c5c04 /pkgs/development/interpreters/python/hooks | |
parent | 52117cce92412a2b921449e11cd3d4716e56f382 (diff) | |
download | nixpkgs-7a41be7b2a21976a6677daa732b1c106e737d4b9.tar nixpkgs-7a41be7b2a21976a6677daa732b1c106e737d4b9.tar.gz nixpkgs-7a41be7b2a21976a6677daa732b1c106e737d4b9.tar.bz2 nixpkgs-7a41be7b2a21976a6677daa732b1c106e737d4b9.tar.lz nixpkgs-7a41be7b2a21976a6677daa732b1c106e737d4b9.tar.xz nixpkgs-7a41be7b2a21976a6677daa732b1c106e737d4b9.tar.zst nixpkgs-7a41be7b2a21976a6677daa732b1c106e737d4b9.zip |
Python hooks: use spliced packages in hooks
This fixes issues when cross-compiling.
Diffstat (limited to 'pkgs/development/interpreters/python/hooks')
-rw-r--r-- | pkgs/development/interpreters/python/hooks/default.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/python/hooks/default.nix b/pkgs/development/interpreters/python/hooks/default.nix index 5d605b240ad..45b230e4470 100644 --- a/pkgs/development/interpreters/python/hooks/default.nix +++ b/pkgs/development/interpreters/python/hooks/default.nix @@ -4,9 +4,6 @@ , makeSetupHook , disabledIf , isPy3k -, ensureNewerSourcesForZipFilesHook -, findutils -, installShellFiles }: let @@ -107,7 +104,7 @@ in rec { }; } ./python-imports-check-hook.sh) {}; - pythonNamespacesHook = callPackage ({}: + pythonNamespacesHook = callPackage ({ findutils }: makeSetupHook { name = "python-namespaces-hook.sh"; substitutions = { @@ -173,7 +170,7 @@ in rec { }; } ./unittest-check-hook.sh) {}; - venvShellHook = disabledIf (!isPy3k) (callPackage ({ }: + venvShellHook = disabledIf (!isPy3k) (callPackage ({ ensureNewerSourcesForZipFilesHook }: makeSetupHook { name = "venv-shell-hook"; deps = [ ensureNewerSourcesForZipFilesHook ]; @@ -188,7 +185,7 @@ in rec { deps = [ wheel ]; } ./wheel-unpack-hook.sh) {}; - sphinxHook = callPackage ({ sphinx }: + sphinxHook = callPackage ({ sphinx, installShellFiles }: makeSetupHook { name = "python${python.pythonVersion}-sphinx-hook"; deps = [ sphinx installShellFiles ]; |