summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2026-02-13 11:39:37 +0000
committerDanny Milosavljevic <dannym@friendly-machines.com>2026-02-21 21:52:40 +0100
commit3cebf497773eeca94a0ddbe3a490f160058611c8 (patch)
tree1491c250311748b4e08262359a274dbdf305f015 /gnu
parentabce3ac7aa940041310fe86bb77bf63b9006cb7c (diff)
gnu: Add python-mvesuvio.
* gnu/packages/physics.scm (python-mvesuvio): New variable. Change-Id: I89b157d4ee024dfb333e97c04c28505bfcc106bd
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/physics.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/physics.scm b/gnu/packages/physics.scm
index 1f476316da8..180550fc688 100644
--- a/gnu/packages/physics.scm
+++ b/gnu/packages/physics.scm
@@ -211,6 +211,48 @@ scattering simulations.")
of multi-dimensional data produced by Mantid.")
(license license:gpl3+)))
+(define-public python-mvesuvio
+ (package
+ (name "python-mvesuvio")
+ (version "0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mantidproject/vesuvio")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1drpz41dfqlfbx9jpsgig6hv52ylxs79ghzk2a7m6109vbawksvw"))))
+ (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; set version via environment
+ ;; variable and create _version.py directly.
+ (mkdir-p "src/mvesuvio")
+ (call-with-output-file "src/mvesuvio/_version.py"
+ (lambda (port)
+ (format port "__version__ = \"~a\"~%" #$version))))))))
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-dill
+ python-iminuit
+ python-jacobi))
+ (home-page "https://github.com/mantidproject/vesuvio")
+ (synopsis "Analysis library for VESUVIO neutron spectrometer data")
+ (description
+ "MVesuvio provides optimized analysis procedures for neutron scattering
+data from the VESUVIO spectrometer. It is a script library meant to be
+imported in Mantid Workbench's script editor (@code{import mvesuvio as mv}),
+not a GUI application.")
+ (license license:gpl3)))
+
(define-public python-pycifrw
(package
(name "python-pycifrw")