Subject: [PATCH 10/16] gnu: Add python-pysingular.

From: Vinicius Monego <[email-masked]>
Date: Sun, 9 Feb 2025 01:52:27 +0000

* gnu/packages/algebra.scm (python-pysingular): New variable.

Change-Id: I57e828bd4eb2c64b2ba094ed0c9cb516fee1c5b4
---
 gnu/packages/algebra.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index b69b14fa28..6abe959343 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -642,6 +642,28 @@ (define-public singular
    (license license:gpl3)
    (home-page "https://www.singular.uni-kl.de/index.php")))
 
+(define-public python-pysingular
+  (package
+    (name "python-pysingular")
+    (version "0.9.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "PySingular" version))
+       (sha256
+        (base32 "037n3s1l08g75k22saki6813wi3ciiq45zxca11izilgagbx20ya"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:tests? #f)) ; there are no tests
+    (native-inputs (list python-setuptools python-wheel))
+    ;; XXX: GMP failed to be loaded from Singular.  Pass it here for now.
+    (inputs (list gmp singular))
+    (home-page "https://github.com/sebasguts/SingularPython")
+    (synopsis "Simple interface to Singular")
+    (description "This package provides a simple Python interface to the
+Singular computer algebra system.")
+    (license license:gpl2+)))
+
 (define-public gmp-ecm
   (package
     (name "gmp-ecm")
-- 
2.48.1