2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python,
|
|
|
|
wheel,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "setuptools";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "69.5.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pypa";
|
|
|
|
repo = "setuptools";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-X0ntFlDIhUjxtWzz0LxybQSuxhRpHlMeBYtOGwqDl4A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
./tag-date.patch
|
|
|
|
./setuptools-distutils-C++.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ wheel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
preBuild = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
|
2020-04-24 23:36:52 +00:00
|
|
|
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Requires pytest, causing infinite recursion.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utilities to facilitate the installation of Python packages";
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://github.com/pypa/setuptools";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://setuptools.pypa.io/en/stable/history.html#v${
|
|
|
|
replaceStrings [ "." ] [ "-" ] version
|
|
|
|
}";
|
2023-03-15 16:39:30 +00:00
|
|
|
license = with licenses; [ mit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = python.meta.platforms;
|
2022-09-30 11:47:45 +00:00
|
|
|
maintainers = teams.python.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|