diff options
Diffstat (limited to 'pkgs/development/python-modules/cvxpy/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/cvxpy/default.nix | 71 |
1 files changed, 34 insertions, 37 deletions
diff --git a/pkgs/development/python-modules/cvxpy/default.nix b/pkgs/development/python-modules/cvxpy/default.nix index d3b057401eb0..e172de7db811 100644 --- a/pkgs/development/python-modules/cvxpy/default.nix +++ b/pkgs/development/python-modules/cvxpy/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, buildPythonPackage -, clarabel -, cvxopt -, ecos -, fetchPypi -, numpy -, osqp -, pytestCheckHook -, pythonOlder -, scipy -, scs -, setuptools -, wheel -, pybind11 -, useOpenmp ? (!stdenv.isDarwin) +{ + lib, + stdenv, + buildPythonPackage, + clarabel, + cvxopt, + ecos, + fetchPypi, + numpy, + osqp, + pytestCheckHook, + pythonOlder, + scipy, + scs, + setuptools, + wheel, + pybind11, + useOpenmp ? (!stdenv.isDarwin), }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { scs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Required flags from https://github.com/cvxpy/cvxpy/releases/tag/v1.1.11 preBuild = lib.optionalString useOpenmp '' @@ -60,25 +59,23 @@ buildPythonPackage rec { export LDFLAGS="-lgomp" ''; - pytestFlagsArray = [ - "cvxpy" - ]; + pytestFlagsArray = [ "cvxpy" ]; - disabledTests = [ - # Disable the slowest benchmarking tests, cuts test time in half - "test_tv_inpainting" - "test_diffcp_sdp_example" - "test_huber" - "test_partial_problem" - # https://github.com/cvxpy/cvxpy/issues/2174 - "test_scipy_mi_time_limit_reached" - ] ++ lib.optionals stdenv.isAarch64 [ - "test_ecos_bb_mi_lp_2" # https://github.com/cvxpy/cvxpy/issues/1241#issuecomment-780912155 - ]; + disabledTests = + [ + # Disable the slowest benchmarking tests, cuts test time in half + "test_tv_inpainting" + "test_diffcp_sdp_example" + "test_huber" + "test_partial_problem" + # https://github.com/cvxpy/cvxpy/issues/2174 + "test_scipy_mi_time_limit_reached" + ] + ++ lib.optionals stdenv.isAarch64 [ + "test_ecos_bb_mi_lp_2" # https://github.com/cvxpy/cvxpy/issues/1241#issuecomment-780912155 + ]; - pythonImportsCheck = [ - "cvxpy" - ]; + pythonImportsCheck = [ "cvxpy" ]; meta = with lib; { description = "A domain-specific language for modeling convex optimization problems in Python"; |
