guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: Add cadabra2.


From: guix-commits
Subject: branch master updated: gnu: Add cadabra2.
Date: Sun, 21 Apr 2024 18:57:03 -0400

This is an automated email from the git hooks/post-receive script.

dannym pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 9fa34ad616 gnu: Add cadabra2.
9fa34ad616 is described below

commit 9fa34ad616b94ad881b5ca48ef88bd84f877a0e9
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Mon Apr 22 00:53:57 2024 +0200

    gnu: Add cadabra2.
    
    * gnu/packages/engineering.scm (cadabra2): New variable.
    
    Change-Id: Ia35b1317b18eb1d8729f003a27df07ac7888d412
---
 gnu/packages/engineering.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 7a60036c28..4e30772296 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -149,6 +149,7 @@
   #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages ruby)
+  #:use-module (gnu packages sagemath)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages stb)
@@ -4369,3 +4370,52 @@ more.")
 server for Python and pypy3.")
     (home-page "https://freeopcua.github.io/";)
     (license license:lgpl3+)))
+
+(define-public cadabra2
+  (package
+    (name "cadabra2")
+    (version "2.4.5.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/kpeeters/cadabra2";)
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1c0832q156kl83dz1wpjw4wf2f68fg7421wxwzahnr2r7xxvgrvl"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list
+         (string-append "-DPYTHON_SITE_PATH=" #$output
+                        "/lib/python"
+                        #$(version-major+minor
+                           (package-version (this-package-input "python")))
+                        "/site-packages")
+         (string-append "-DCMAKE_INSTALL_PREFIX="
+                        (assoc-ref %outputs "out")))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-dependencies
+            (lambda _
+              (substitute* "cmake/modules/FindGLIBMM.cmake"
+                (("glibmm-2[.]4") "glibmm-2.68"))
+              (substitute* "client_server/ComputeThread.cc"
+                (("sigc::slot<void>[(][)]") "{}")
+                (("Glib::SPAWN_") "Glib::SpawnFlags::"))))
+          (add-before 'check 'prepare-checks
+            (lambda _
+              (setenv "HOME" "/tmp"))))))
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list glibmm gmp python boost gtkmm-3 sqlite python-gmpy2 python-sympy
+           python-mpmath python-matplotlib texlive-dvipng
+           `(,util-linux "lib")))
+    (synopsis "Computer algebra system geared towards field theory")
+    (description "This package provides a computer algebra system geared
+towards field theory.")
+    (home-page "https://cadabra.science/";)
+    (license license:gpl3+)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]