python311Packages.scs: relax floating point precision

after the update to scipy 1.12 the test_solve_feasible fails on linux
with 1 of the 185 floating point values not being equal to 4 decimal
places. relax the check to only check 3 decimal places.
This commit is contained in:
annalee
2024-02-01 01:15:46 +00:00
parent e49dc530ba
commit eec43fd660
@@ -41,6 +41,13 @@ buildPythonPackage rec {
url = "https://github.com/bodono/scs-python/commit/dd17e2e5282ebe85f2df8a7c6b25cfdeb894970d.patch";
hash = "sha256-vSeSJeeu5Wx3RXPyB39YTo0RU8HtAojrUw85Q76/QzA=";
})
# fix test_solve_random_cone_prob on linux after scipy 1.12 update
# https://github.com/bodono/scs-python/pull/82
(fetchpatch {
name = "scipy-1.12-fix.patch";
url = "https://github.com/bodono/scs-python/commit/4baf4effdc2ce7ac2dd1beaf864f1a5292eb06c6.patch";
hash = "sha256-U/F5MakwYZN5hCaeAkcCG38WQxX9mXy9OvhyEQqN038=";
})
];
nativeBuildInputs = [