python3.pkgs.cvxpy: add build dependencies and fix build constraints (#247305)

This commit is contained in:
Theodore Ni 2023-08-10 22:57:36 -07:00 committed by GitHub
parent 2d6cf36efd
commit 07fdd8318d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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