python3.pkgs.cvxpy: add build dependencies and fix build constraints (#247305)
This commit is contained in:
parent
2d6cf36efd
commit
07fdd8318d
1 changed files with 11 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
, scipy
|
||||
, scs
|
||||
, setuptools
|
||||
, wheel
|
||||
, useOpenmp ? (!stdenv.isDarwin)
|
||||
}:
|
||||
|
||||
|
@ -26,6 +27,16 @@ buildPythonPackage rec {
|
|||
hash = "sha256-C2heUEDxmfPXA/MPXSLR+GVZdiNFUVPR3ddwJFrvCXU=";
|
||||
};
|
||||
|
||||
# we need to patch out numpy version caps from upstream
|
||||
postPatch = ''
|
||||
sed -i 's/\(numpy>=[0-9.]*\),<[0-9.]*;/\1;/g' pyproject.toml
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cvxopt
|
||||
ecos
|
||||
|
|
Loading…
Reference in a new issue