mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
python312Packages.distutils: unbreak on Darwin
(cherry picked from commit 74725fa54a
)
This commit is contained in:
parent
851859ca2d
commit
0af4eb37cb
@ -5,15 +5,18 @@
|
||||
setuptools-scm,
|
||||
setuptools,
|
||||
python,
|
||||
docutils,
|
||||
jaraco-collections,
|
||||
jaraco-functools,
|
||||
jaraco-envs,
|
||||
jaraco-path,
|
||||
jaraco-text,
|
||||
more-itertools,
|
||||
packaging,
|
||||
path,
|
||||
pyfakefs,
|
||||
pytestCheckHook,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -24,13 +27,18 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "pypa";
|
||||
repo = "distutils";
|
||||
rev = "378984e02edae91d5f49425da8436f8dd9152b8a"; # correlate commit from setuptools version
|
||||
hash = "sha256-31sPPVY6tr+OwpiFiaKw82KyhDNBVW3Foea49dCa6pA=";
|
||||
rev = "72837514c2b67081401db556be9aaaa43debe44f"; # correlate commit from setuptools version
|
||||
hash = "sha256-Kx4Iudy9oZ0oQT96Meyq/m0k0BuexPLVxwvpNJehCW0=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
dependencies = [ jaraco-functools ];
|
||||
dependencies = [
|
||||
jaraco-collections
|
||||
jaraco-functools
|
||||
more-itertools
|
||||
packaging
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
rm -r $out/${python.sitePackages}/distutils
|
||||
@ -40,7 +48,7 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "distutils" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
jaraco-collections
|
||||
docutils
|
||||
jaraco-envs
|
||||
jaraco-path
|
||||
jaraco-text
|
||||
@ -50,6 +58,9 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# jaraco-path depends ob pyobjc
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = {
|
||||
description = "Distutils as found in cpython";
|
||||
homepage = "https://github.com/pypa/distutils";
|
||||
|
Loading…
Reference in New Issue
Block a user