5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, python
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "setuptools";
|
|
version = "69.5.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pypa";
|
|
repo = "setuptools";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-X0ntFlDIhUjxtWzz0LxybQSuxhRpHlMeBYtOGwqDl4A=";
|
|
};
|
|
|
|
patches = [
|
|
./tag-date.patch
|
|
./setuptools-distutils-C++.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
wheel
|
|
];
|
|
|
|
preBuild = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
|
|
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
|
|
'';
|
|
|
|
# Requires pytest, causing infinite recursion.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Utilities to facilitate the installation of Python packages";
|
|
homepage = "https://github.com/pypa/setuptools";
|
|
changelog = "https://setuptools.pypa.io/en/stable/history.html#v${replaceStrings [ "." ] [ "-" ] version}";
|
|
license = with licenses; [ mit ];
|
|
platforms = python.meta.platforms;
|
|
maintainers = teams.python.members;
|
|
};
|
|
}
|