mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
Revert "python.pkgs.buildPythonPackage: use distutils-cfg to block downloads, fixes #25428"
This reverts commit b73e3bfafd
.
See https://github.com/NixOS/nixpkgs/issues/29103
This commit is contained in:
parent
dce314e55b
commit
c3a0c3c9f1
@ -6,8 +6,6 @@
|
||||
, setuptools
|
||||
, unzip
|
||||
, ensureNewerSourcesHook
|
||||
# Prevent impurities by blocking setuptools/easy-install from downloading sdists
|
||||
, distutils-cfg
|
||||
}:
|
||||
|
||||
{ name
|
||||
@ -62,7 +60,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "checkInputs"
|
||||
|
||||
inherit pythonPath;
|
||||
|
||||
buildInputs = [ distutils-cfg wrapPython ] ++ buildInputs ++ pythonPath
|
||||
buildInputs = [ wrapPython ] ++ buildInputs ++ pythonPath
|
||||
++ [ (ensureNewerSourcesHook { year = "1980"; }) ]
|
||||
++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip)
|
||||
++ lib.optionals doCheck checkInputs;
|
||||
|
@ -34,7 +34,6 @@ let
|
||||
bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { };
|
||||
|
||||
mkPythonDerivation = makeOverridable( callPackage ../development/interpreters/python/mk-python-derivation.nix {
|
||||
distutils-cfg = callPackage ../development/python-modules/distutils-cfg { };
|
||||
});
|
||||
|
||||
# Derivations built with `buildPythonPackage` can already be overriden with `override`, `overrideAttrs`, and `overrideDerivation`.
|
||||
|
Loading…
Reference in New Issue
Block a user