9 buildPythonPackage rec {
14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-kll4zYFQn4g/8Fq0Y5vLvDXtotxYMbiNAgGa0sClFQk=";
23 ./setuptools-distutils-C++.patch
30 preBuild = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
31 export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
34 # Requires pytest, causing infinite recursion.
38 description = "Utilities to facilitate the installation of Python packages";
39 homepage = "https://github.com/pypa/setuptools";
40 changelog = "https://setuptools.pypa.io/en/stable/history.html#v${replaceStrings [ "." ] [ "-" ] version}";
41 license = with licenses; [ mit ];
42 platforms = python.meta.platforms;
43 maintainers = teams.python.members;