depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

45 lines
1 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, python
, wheel
}:
buildPythonPackage rec {
pname = "setuptools";
version = "69.0.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "pypa";
repo = "setuptools";
rev = "refs/tags/v${version}";
hash = "sha256-7xOZC85glpXPKdPTYOpwjQHRpkKL1hgbMFgJF3q5EW0=";
};
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;
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;
};
}