python: Pull ensureNewerSourcesHook call to all-packages.nix

Documents the reason why it's needed and also prevents the
ensureNewerSourcesHook call being evaluated again and again for every
single Python package.
This commit is contained in:
Tuomas Tynkkynen
2018-02-13 16:32:16 +02:00
parent d6023f0456
commit 68052b5619
3 changed files with 8 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
, wrapPython
, setuptools
, unzip
, ensureNewerSourcesHook
, ensureNewerSourcesForZipFilesHook
# Whether the derivation provides a Python module or not.
, toPythonModule
, namePrefix
@@ -69,7 +69,7 @@ toPythonModule (python.stdenv.mkDerivation (builtins.removeAttrs attrs [
name = namePrefix + name;
nativeBuildInputs = [ (ensureNewerSourcesHook { year = "1980"; }) ]
nativeBuildInputs = [ ensureNewerSourcesForZipFilesHook ]
++ nativeBuildInputs;
buildInputs = [ wrapPython ]