[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: Add python-cvxpy.
From: |
guix-commits |
Subject: |
06/07: gnu: Add python-cvxpy. |
Date: |
Mon, 29 Apr 2024 09:30:31 -0400 (EDT) |
rekado pushed a commit to branch wip-python-team
in repository guix.
commit d86cf286afce044a430a5381be5028f98f50d6c5
Author: Marco Baggio <marco.baggio@mdc-berlin.de>
AuthorDate: Mon Apr 29 15:11:53 2024 +0200
gnu: Add python-cvxpy.
* gnu/packages/python-science.scm (python-cvxpy): New variable.
Co-authored-by: Ricardo Wurmus <rekado@elephly.net>
Change-Id: I440ab3768cbc4e78364dc31cf9484effd9670f49
---
gnu/packages/python-science.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index acf32f57c5..f979c67d40 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -89,6 +89,35 @@
#:use-module (guix build-system python)
#:use-module (guix build-system pyproject))
+(define-public python-cvxpy
+ (package
+ (name "python-cvxpy")
+ (version "1.4.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "cvxpy" version))
+ (sha256
+ (base32 "0lyri9j5gyg6m1bvfy1a4q2sqdy3w45lp0bxiq9as8srq347ic5i"))))
+ (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))
+ (home-page "https://github.com/cvxpy/cvxpy")
+ (synopsis "DSL for modeling convex optimization problems")
+ (description
+ "This package provides a domain-specific language for modeling convex
+optimization problems in Python.")
+ (license license:asl2.0)))
+
(define-public python-ecos
(package
(name "python-ecos")
- branch wip-python-team updated (d242c59ba3 -> 65281758c7), guix-commits, 2024/04/29
- 01/07: gnu: Add python-fastcluster., guix-commits, 2024/04/29
- 02/07: gnu: Add python-scs., guix-commits, 2024/04/29
- 05/07: gnu: Add python-ecos., guix-commits, 2024/04/29
- 04/07: gnu: Add python-osqp., guix-commits, 2024/04/29
- 03/07: gnu: Add python-qdldl., guix-commits, 2024/04/29
- 06/07: gnu: Add python-cvxpy.,
guix-commits <=
- 07/07: gnu: Add python-metacells., guix-commits, 2024/04/29