python3Packages.pandas: fix build for musl (#379063)

This commit is contained in:
7c6f434c
2025-02-03 11:32:46 +00:00
committed by GitHub
@@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pythonOlder,
# build-system
@@ -76,6 +77,14 @@ let
hash = "sha256-6YUROcqOV2P1AbJF9IMBIqTt7/PSTeXDwGgE4uI9GME=";
};
patches = [
(fetchpatch {
name = "musl.patch";
url = "https://github.com/pandas-dev/pandas/commit/1e487982ff7501f07e2bba7a7d924fb92b3d5c7f.patch";
hash = "sha256-F1pVce1W951Ea82Ux198e5fBFH6kDOG+EeslDTYbjio=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "meson-python==0.13.1" "meson-python>=0.13.1" \