blob: 9dae458a8dcbbf07d872bfa5ad39cc8da9d30d9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
stdenv,
lib,
buildPythonPackage,
distutils,
fetchFromGitHub,
python,
}:
buildPythonPackage rec {
pname = "setuptools";
version = "80.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pypa";
repo = "setuptools";
tag = "v${version}";
hash = "sha256-wueVQsV0ja/iPFRK7OKV27FQ7hYKF8cP3WH5wJeIXnI=";
};
patches = [
./tag-date.patch
];
# Drop dependency on coherent.license, which in turn requires coherent.build
postPatch = ''
sed -i "/coherent.licensed/d" pyproject.toml
'';
preBuild = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
'';
# Requires pytest, causing infinite recursion.
doCheck = false;
passthru.tests = {
inherit distutils;
};
meta = {
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${
lib.replaceStrings [ "." ] [ "-" ] version
}";
license = with lib.licenses; [ mit ];
platforms = python.meta.platforms;
teams = [ lib.teams.python ];
};
}
|