lol

python310Packages.cvxpy: fix build on aarch64-darwin

+8
+4
pkgs/development/python-modules/cvxpy/default.nix
··· 9 , osqp 10 , scipy 11 , scs 12 , useOpenmp ? (!stdenv.isDarwin) 13 # Check inputs 14 , pytestCheckHook ··· 33 osqp 34 scipy 35 scs 36 ]; 37 38 # Required flags from https://github.com/cvxgrp/cvxpy/releases/tag/v1.1.11 ··· 49 disabledTests = [ 50 "test_tv_inpainting" 51 "test_diffcp_sdp_example" 52 ] ++ lib.optionals stdenv.isAarch64 [ 53 "test_ecos_bb_mi_lp_2" # https://github.com/cvxgrp/cvxpy/issues/1241#issuecomment-780912155 54 ];
··· 9 , osqp 10 , scipy 11 , scs 12 + , setuptools 13 , useOpenmp ? (!stdenv.isDarwin) 14 # Check inputs 15 , pytestCheckHook ··· 34 osqp 35 scipy 36 scs 37 + setuptools 38 ]; 39 40 # Required flags from https://github.com/cvxgrp/cvxpy/releases/tag/v1.1.11 ··· 51 disabledTests = [ 52 "test_tv_inpainting" 53 "test_diffcp_sdp_example" 54 + "test_huber" 55 + "test_partial_problem" 56 ] ++ lib.optionals stdenv.isAarch64 [ 57 "test_ecos_bb_mi_lp_2" # https://github.com/cvxgrp/cvxpy/issues/1241#issuecomment-780912155 58 ];
+4
pkgs/development/python-modules/osqp/default.nix
··· 21 sha256 = "b2fa17aae42a7ed498ec261b33f262bb4b3605e7e8464062159d9fae817f0d61"; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ cmake setuptools-scm ];
··· 21 sha256 = "b2fa17aae42a7ed498ec261b33f262bb4b3605e7e8464062159d9fae817f0d61"; 22 }; 23 24 + postPatch = '' 25 + sed -i 's/sp.random/np.random/g' src/osqp/tests/*.py 26 + ''; 27 + 28 SETUPTOOLS_SCM_PRETEND_VERSION = version; 29 30 nativeBuildInputs = [ cmake setuptools-scm ];