Skip to content

Commit

Permalink
python312Packages.distutils: unbreak on Darwin (NixOS#357099)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda authored Nov 20, 2024
2 parents f959feb + 74725fa commit 68b1892
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions pkgs/development/python-modules/distutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand All @@ -40,7 +48,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "distutils" ];

nativeCheckInputs = [
jaraco-collections
docutils
jaraco-envs
jaraco-path
jaraco-text
Expand All @@ -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";
Expand Down

0 comments on commit 68b1892

Please sign in to comment.