summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhislain Vaillant <ghislain.vaillant@inria.fr>2026-07-08 11:19:12 +0200
committerGhislain Vaillant <ghislain.vaillant@inria.fr>2026-07-08 12:40:26 +0200
commit2a413ffd8ecba453f85ec6e7196e59bf56c9faf8 (patch)
treee63b41670ab627dc694b65fdf2800fa51fb2c631
parentf43351877244b9222eb33442e8ce7de62fe9746f (diff)
electrophysiology: Update mnelab to 1.5.4.
* guix-science/packages/electrophysiology.scm (mnelab) [source]: Update to 1.5.4. [arguments]<#:phases>: Remove numpy compatibility phase. Refresh phase which fixes requirements. [propagated-inputs]: Add onnx and python-{black,isort,pybvrf}. [home-page]: Use documentation URL.
-rw-r--r--guix-science/packages/electrophysiology.scm36
1 files changed, 19 insertions, 17 deletions
diff --git a/guix-science/packages/electrophysiology.scm b/guix-science/packages/electrophysiology.scm
index c24cb16..24f6a33 100644
--- a/guix-science/packages/electrophysiology.scm
+++ b/guix-science/packages/electrophysiology.scm
@@ -235,7 +235,7 @@ programming skills.")
235(define-public mnelab 235(define-public mnelab
236 (package 236 (package
237 (name "mnelab") 237 (name "mnelab")
238 (version "1.0.8") 238 (version "1.5.4")
239 (source 239 (source
240 (origin 240 (origin
241 (method git-fetch) 241 (method git-fetch)
@@ -244,7 +244,7 @@ programming skills.")
244 (commit (string-append "v" version)))) 244 (commit (string-append "v" version))))
245 (file-name (git-file-name name version)) 245 (file-name (git-file-name name version))
246 (sha256 246 (sha256
247 (base32 "1za7h42nkvqrppknpci4kwxqr1xh22mv2l5fvfzy74ays1s5i6c6")))) 247 (base32 "1qip9z3060zib1q9pvvs4pa7kn6k4jpr3dlk3xqm06pw5wm77awk"))))
248 (build-system pyproject-build-system) 248 (build-system pyproject-build-system)
249 (arguments 249 (arguments
250 (list 250 (list
@@ -254,37 +254,39 @@ programming skills.")
254 #:build-backend "hatchling.build" 254 #:build-backend "hatchling.build"
255 #:phases 255 #:phases
256 #~(modify-phases %standard-phases 256 #~(modify-phases %standard-phases
257 (add-after 'unpack 'fix-numpy-compatibility 257 ;; Fix requirements to pass sanity check.
258 (lambda _ 258 (add-after 'unpack 'fix-requirements
259 ;; Fix compatibility with NumPy v1.
260 (substitute* "src/mnelab/io/writers.py"
261 (("numpy\\.rec")
262 "numpy.core.records"))))
263 (add-after 'unpack 'relax-requirements
264 (lambda _ 259 (lambda _
265 ;; Relax constraints on some requirements.
266 (substitute* "pyproject.toml" 260 (substitute* "pyproject.toml"
267 (("\"numpy.*\",") 261 ;; not found by sanity-check
268 "\"numpy\",") 262 (("\"onnx.*\",")
269 (("\"scipy.*\",") 263 "")
270 "\"scipy\",")
271 (("\"pyside6.*\",") 264 (("\"pyside6.*\",")
272 "")))) 265 "")
266 ;; no versioned constraints
267 ((">=.*\"")
268 "\""))))
269
270 ;; Tests require a running display server.
273 (add-before 'check 'start-xorg-server 271 (add-before 'check 'start-xorg-server
274 (lambda _ 272 (lambda _
275 (system "Xvfb :99 -screen 0 1024x768x24 &") 273 (system "Xvfb :99 -screen 0 1024x768x24 &")
276 (setenv "DISPLAY" ":99.0")))))) 274 (setenv "DISPLAY" ":99.0"))))))
277 (propagated-inputs (list python-edfio 275 (propagated-inputs (list onnx
276 python-black
277 python-edfio
278 python-isort
278 python-matplotlib 279 python-matplotlib
279 python-mne 280 python-mne
280 python-numpy 281 python-numpy
281 python-pybv 282 python-pybv
283 python-pybvrf
282 python-pyside-6 284 python-pyside-6
283 python-pyxdf 285 python-pyxdf
284 python-scipy)) 286 python-scipy))
285 (native-inputs (list python-hatchling python-pytest python-pytest-qt 287 (native-inputs (list python-hatchling python-pytest python-pytest-qt
286 xorg-server)) 288 xorg-server))
287 (home-page "https://github.com/cbrnr/mnelab") 289 (home-page "https://mnelab.readthedocs.io/")
288 (synopsis "A graphical user interface for MNE") 290 (synopsis "A graphical user interface for MNE")
289 (description 291 (description
290 "MNELAB is a @acronym{GUI, Graphical User Interface} for MNE-Python, a 292 "MNELAB is a @acronym{GUI, Graphical User Interface} for MNE-Python, a