61a04f735a
Reproducible builds of pyproject projects using pip is resolved. Fixes https://github.com/pypa/pip/issues/7808 Fixes https://github.com/NixOS/nixpkgs/issues/81441 The more recentc409f69480
caused trouble with pyproject troubles and had to be reverted anyway. https://github.com/NixOS/nixpkgs/pull/102222#issuecomment-722380794 Revert "pythonPackages.pip: make reproducible (#102222)" This reverts commitc409f69480
. Revert "python3Packages.pip: allow setting reproducible temporary directory via NIX_PIP_INSTALL_TMPDIR" This reverts commitaedbade43e
.
45 lines
953 B
Nix
45 lines
953 B
Nix
{ lib
|
|
, python
|
|
, buildPythonPackage
|
|
, bootstrapped-pip
|
|
, fetchFromGitHub
|
|
, mock
|
|
, scripttest
|
|
, virtualenv
|
|
, pretend
|
|
, pytest
|
|
, setuptools
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pip";
|
|
version = "20.2.4";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pypa";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "eMVV4ftgV71HLQsSeaOchYlfaJVgzNrwUynn3SA1/Do=";
|
|
name = "${pname}-${version}-source";
|
|
};
|
|
|
|
nativeBuildInputs = [ bootstrapped-pip ];
|
|
|
|
# pip detects that we already have bootstrapped_pip "installed", so we need
|
|
# to force it a little.
|
|
pipInstallFlags = [ "--ignore-installed" ];
|
|
|
|
checkInputs = [ mock scripttest virtualenv pretend pytest ];
|
|
# Pip wants pytest, but tests are not distributed
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "The PyPA recommended tool for installing Python packages";
|
|
license = with lib.licenses; [ mit ];
|
|
homepage = "https://pip.pypa.io/";
|
|
priority = 10;
|
|
};
|
|
}
|