guix_mirror_bot pushed a commit to branch master
in repository guix.

commit abce3ac7aa940041310fe86bb77bf63b9006cb7c
Author: Danny Milosavljevic <[email protected]>
AuthorDate: Fri Feb 13 11:39:09 2026 +0000

    gnu: Add python-shiver.
    
    * gnu/packages/physics.scm (python-shiver): New variable.
    
    Change-Id: Ia5886a4b99d7a9536e24de1e57a22168d43986cf
---
 gnu/packages/physics.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/physics.scm b/gnu/packages/physics.scm
index ed616ed14e..1f476316da 100644
--- a/gnu/packages/physics.scm
+++ b/gnu/packages/physics.scm
@@ -459,6 +459,56 @@ scattering data.  It is designed for use with the Mantid 
framework for
 neutron and muon data analysis.")
     (license license:bsd-3)))
 
+(define-public python-shiver
+  (package
+    (name "python-shiver")
+    (version "1.8.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/neutrons/Shiver";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "05bxn1wqqylixzkk4is9nqkcsxfiix46s8m18db4c1zj7kkjawwv"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f  ; tests require mantid
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-version
+            (lambda _
+              ;; versioningit needs git tags; patch pyproject.toml to use
+              ;; static version and create _version.py directly.
+              (substitute* "pyproject.toml"
+                (("dynamic = \\[\"version\"\\]")
+                 (string-append "version = \"" #$version "\""))
+                (("source = \"versioningit\"") "")
+                (("\\[tool\\.hatch\\.build\\.hooks\\.versioningit-onbuild\\]")
+                 "[tool.hatch.build.hooks.versioningit-onbuild]
+enable-by-default = false"))
+              (mkdir-p "src/shiver")
+              (call-with-output-file "src/shiver/_version.py"
+                (lambda (port)
+                  (format port "__version__ = \"~a\"~%" #$version))))))))
+    (native-inputs
+     (list python-hatchling))
+    (propagated-inputs
+     (list python-configupdater
+           python-pyoncatqt
+           python-qtpy))
+    (home-page "https://github.com/neutrons/Shiver";)
+    (synopsis "Spectroscopy histogram visualizer for neutron event reduction")
+    (description
+     "Shiver (Spectroscopy Histogram Visualizer for Event Reduction) is a
+desktop application for examining Time of Flight inelastic neutron data from
+single crystal, direct geometry experiments.  It integrates with Mantid
+Workbench and appears in the Interfaces menu when both packages are
+installed.")
+    (license license:gpl3)))
+
 (define-public python-spglib
   (package
     (name "python-spglib")

Reply via email to