python3Packages.cvxpy: fix build with highs 1.14.0

Upstream PR: https://github.com/cvxpy/cvxpy/pull/3290
Hydra: https://hydra.nixos.org/build/327775858
This commit is contained in:
Tom Hunze
2026-05-01 22:52:32 +02:00
parent 946fc46e4f
commit 6ba002c856
@@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# build-system
numpy,
@@ -36,6 +37,15 @@ buildPythonPackage (finalAttrs: {
hash = "sha256-MDKTuiePzqdIJlTRxbCOxoaEAisGx368iWbwKEB97QU=";
};
patches = [
# Upstream PR: https://github.com/cvxpy/cvxpy/pull/3290
(fetchpatch {
name = "highs-1.14.0.patch";
url = "https://github.com/cvxpy/cvxpy/commit/89f8d337d927457c2e308de8295dd83f274e40e7.patch";
hash = "sha256-BO878Kz5ZH5FHkxZugzT+n6wjsoOReqCZWM2HDvFqAw=";
})
];
postPatch =
# too tight tolerance in tests (AssertionError)
''