diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-02 11:44:58 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:20:12 +0100 |
| commit | a869caec919a58564ca477318b11f71a6c33175c (patch) | |
| tree | 808713ce23786076e348134cd289e5ad9e7f9b7f /gnu/packages/python-science.scm | |
| parent | 6d3c8b3e42145e6bf865fdb1b3fb3ac37bc088f1 (diff) | |
gnu: python-cvxpy: Update to 1.7.5.
* gnu/packages/python-science.scm (python-cvxpy): Update to 1.7.5.
[arguments] <test-flags>: Skip some tests.
[propagated-inputs]: Remove pybind11; add python-cvxopt.
[native-inputs]: Remove python-wheel; add pybind11.
Change-Id: I83974c14d6422284c1f31fe8922cd9e7bc5a9253
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-science.scm')
| -rw-r--r-- | gnu/packages/python-science.scm | 64 |
1 files changed, 51 insertions, 13 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 8933a58b62e..81d9f7a2f39 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -735,25 +735,63 @@ it can be used for displaying many qualitatively different samples.") (define-public python-cvxpy (package (name "python-cvxpy") - (version "1.4.3") + (version "1.7.5") (source (origin (method url-fetch) (uri (pypi-uri "cvxpy" version)) (sha256 - (base32 "0lyri9j5gyg6m1bvfy1a4q2sqdy3w45lp0bxiq9as8srq347ic5i")))) + (base32 "0p9zp2ci1zw56hy2q0w18s3kb1h3j0j4m4gw2sg6a9qw00c24lab")))) (build-system pyproject-build-system) - ;; It's odd but cvxpy appears to need pybind11 at runtime according to its - ;; specification. Moving pybind11 to native-inputs would break downstream - ;; packages using cvxpy. - (propagated-inputs (list pybind11 - python-clarabel - python-ecos - python-numpy - python-osqp - python-scipy - python-scs)) - (native-inputs (list python-pytest python-setuptools python-wheel)) + (arguments + (list + ;; tests: 1344 passed, 391 skipped, 4 deselected, 237 warnings + #:test-flags + #~(list #$@(map (lambda (test) (string-append "--deselect=" + "cvxpy/tests/" + "test_cone2cone.py::" + test)) + ;; cvxpy.error.SolverError: Either candidate conic + ;; solvers (['GLPK_MI', 'SCIPY']) do not support the + ;; cones output by the problem (SOC, NonNeg, Zero), or + ;; there are not enough constraints in the problem. + (list "TestSlacks::test_mi_socp_2" + ;; cvxpy.error.SolverError: Solver 'CVXOPT' + ;; failed. Try another solver, or solve with + ;; verbose=True for more information. + "TestOpRelConeQuad::test_oprelcone_1_m1_k3_complex" + "TestOpRelConeQuad::test_oprelcone_1_m3_k1_complex" + ;; cvxpy.error.SolverError: Solver 'CVXOPT' + ;; failed. Try another solver, or solve with + ;; verbose=True for more information. + "TestOpRelConeQuad::test_oprelcone_2"))))) + (native-inputs + (list pybind11 + python-pytest + python-setuptools)) + (propagated-inputs + (list python-clarabel + python-numpy + python-osqp + python-scipy + python-scs + ;; [optional] + ;; python-cuopt-cu12 + python-cvxopt + ;; python-cylp ;FIXME: <https://codeberg.org/guix/guix/issues/2912> + ;; python-daqp + ;; python-diffcp + python-ecos + ;; python-gurobipy + ;; python-highspy + ;; python-mosek + ;; python-nvidia-cuda-runtime-cu12 + ;; python-ortools + ;; python-piqp + ;; python-proxsuite + ;; python-pyscipopt + ;; python-qoco + #;python-xpress)) (home-page "https://github.com/cvxpy/cvxpy") (synopsis "DSL for modeling convex optimization problems") (description |
