rekado pushed a commit to branch wip-python-team
in repository guix.

commit 2c0cf38f04a2bca6e8057bf934db3d80bf246266
Author: Marco Baggio <[email protected]>
AuthorDate: Mon Apr 29 15:09:53 2024 +0200

    gnu: Add python-ecos.
    
    * gnu/packages/python-science.scm (python-ecos): New variable.
    
    Co-authored-by: Ricardo Wurmus <[email protected]>
    Change-Id: I83d9b746f5f3563f417efc5d18911f2eb04f201c
---
 gnu/packages/python-science.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 5a9666fb47..875b31d7c5 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -89,6 +89,30 @@
   #:use-module (guix build-system python)
   #:use-module (guix build-system pyproject))
 
+(define-public python-ecos
+  (package
+    (name "python-ecos")
+    (version "2.0.13")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/embotech/ecos-python";)
+             (commit (string-append "v" version))
+             (recursive? #true)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "16ljq8maflfkgbw16rldg6cy14vgz2pb3b2iga60i7yzkq2ikmyw"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-numpy python-scipy))
+    (native-inputs (list python-pytest python-setuptools python-wheel))
+    (home-page "https://github.com/embotech/ecos";)
+    (synopsis "Embedded Cone Solver")
+    (description
+     "This is the Python package for ECOS: Embedded Cone Solver.  ECOS is
+numerical software for solving convex second-order cone programs (SOCPs).")
+    (license license:gpl3)))
+
 (define-public python-osqp
   (package
     (name "python-osqp")

Reply via email to