python312Packages.pyarrow: replace distutils usage

Closes: #292832
This commit is contained in:
Martin Weinelt
2024-03-02 19:12:00 +01:00
parent 81198fd201
commit 79fd30ff93
@@ -37,6 +37,10 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml setup.py \
--replace "setuptools_scm < 8.0.0" "setuptools_scm"
'' + lib.optionalString (pythonAtLeast "3.12") ''
substituteInPlace ./cmake_modules/FindPython3Alt.cmake --replace-fail \
"from distutils import sysconfig" \
"import sysconfig"
'';
nativeBuildInputs = [