2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
2023-10-09 19:29:22 +00:00
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python
|
2023-10-09 19:29:22 +00:00
|
|
|
, 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-04-21 15:54:59 +00:00
|
|
|
version = "69.2.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pypa";
|
|
|
|
repo = "setuptools";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-kll4zYFQn4g/8Fq0Y5vLvDXtotxYMbiNAgGa0sClFQk=";
|
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
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
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";
|
|
|
|
changelog = "https://setuptools.pypa.io/en/stable/history.html#v${replaceStrings [ "." ] [ "-" ] version}";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|