depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

51 lines
1.1 KiB
Nix

{
stdenv,
lib,
buildPythonPackage,
distutils,
fetchFromGitHub,
python,
wheel,
}:
buildPythonPackage rec {
pname = "setuptools";
version = "70.0.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pypa";
repo = "setuptools";
rev = "refs/tags/v${version}";
hash = "sha256-LXF3R9zfWylvihP2M8N94/IlgifwxUwKJFhtvcXEPB0=";
};
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;
passthru.tests = {
inherit distutils;
};
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;
};
}