Subject: [PATCH 08/10] gnu: Add python-ndim.

From: Felix Gruber <[email-masked]>
Date: Sat, 4 Nov 2023 15:02:37 +0000

* gnu/packages/maths.scm (python-ndim): New variable.

Change-Id: I543f1f5e195f4f2fd5bd70f9ce29ec750a24439b
---
 gnu/packages/maths.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 28e023190f..3c12cf7622 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -162,6 +162,7 @@ (define-module (gnu packages maths)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-build)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
@@ -3689,6 +3690,30 @@ (define-public python-accupy
 algorithm and summation in K-fold precision.")
     (license license:gpl3)))
 
+(define-public python-ndim
+  (package
+    (name "python-ndim")
+    (version "0.1.6")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/diego-hayashi/ndim")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1hri82k7pcpw9dns8l1f2asa3dm7hjv71wnxi3752258ia2qa44v"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-sympy))
+    (native-inputs (list python-flit-core python-pytest))
+    (home-page "https://github.com/diego-hayashi/ndim")
+    (synopsis "Multidimensional volumes and monomial integrals")
+    (description
+      "@code{ndim} computes all kinds of volumes and integrals of
+monomials over such volumes in a fast, numerically stable way, using
+recurrence relations.")
+    (license license:gpl3)))
+
 (define-public slepc
   (package
     (name "slepc")
-- 
2.42.0