python311Packages.cvxpy: apply upstream patch to fix unit test
fixes unit test failure after scipy 1.12 upgrade
This commit is contained in:
parent
33ed01ea05
commit
b4781965cd
1 changed files with 11 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchpatch
|
||||
, clarabel
|
||||
, cvxopt
|
||||
, ecos
|
||||
|
@ -29,6 +30,16 @@ buildPythonPackage rec {
|
|||
hash = "sha256-CjhqV4jb14t7IN0HFSTsY2yPpys2KOafGrxxTI+YEeU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix QP tests. remove on next update
|
||||
# https://github.com/cvxpy/cvxpy/pull/2343
|
||||
(fetchpatch {
|
||||
name = "fix-QP-tests.patch";
|
||||
url = "https://github.com/cvxpy/cvxpy/commit/4c8549b9820e64c1b06f5d71c5d3f36528dd4a76.patch";
|
||||
hash = "sha256-43zjS1STEBaGgj1jEOlX3XzMsE4wjoKAk8ApJo98AzY=";
|
||||
})
|
||||
];
|
||||
|
||||
# we need to patch out numpy version caps from upstream
|
||||
postPatch = ''
|
||||
sed -i 's/\(numpy>=[0-9.]*\),<[0-9.]*;/\1;/g' pyproject.toml
|
||||
|
|
Loading…
Reference in a new issue