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

This commit is contained in:
Theodore Ni
2023-08-11 07:57:36 +02:00
committed by GitHub
parent 2d6cf36efd
commit 07fdd8318d
@@ -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