From 0394aa35edc9ed4dcec22d2023a2d4389333a31d Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 3 Feb 2025 11:03:06 +0100 Subject: [PATCH] python3Packages.pandas: fix build for musl Since 8ed4a0d4d28d ("ffado: unpin python311"), pandas is necessary to build ffado. This patch will be included in the next release of pandas. --- pkgs/development/python-modules/pandas/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix index 241f60fa75fe..2a96029a4139 100644 --- a/pkgs/development/python-modules/pandas/default.nix +++ b/pkgs/development/python-modules/pandas/default.nix @@ -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" \