From 84e24ab04abf6cdcd590831fa227237389e29aa0 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Mon, 31 Aug 2026 11:54:46 +0200 Subject: electrophysiology: python-conpy: Fix build. * guix-science/packages/electrophysiology.scm (python-conpy) [arguments]<#:phases>: Fix compatibility with recent releases of NumPy. Set Numba cache directory to a writable location. --- guix-science/packages/electrophysiology.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/guix-science/packages/electrophysiology.scm b/guix-science/packages/electrophysiology.scm index 35e28a6..83649a7 100644 --- a/guix-science/packages/electrophysiology.scm +++ b/guix-science/packages/electrophysiology.scm @@ -734,6 +734,13 @@ approach. ") (substitute* "conpy/forward.py" ((", disp=False\\)") ")")))) + + (add-after 'unpack 'fix-numpy-compatibility + (lambda _ + (substitute* (list "conpy/forward.py" "conpy/stats.py") + (("np\\.in1d") + "np.isin")))) + (add-after 'unpack 'fix-pytest-configuration (lambda _ (substitute* "pyproject.toml" @@ -741,10 +748,17 @@ approach. ") "") (("--cov=conpy") "")))) + + (add-before 'build 'set-numba-cache-dir + (lambda _ + (setenv "NUMBA_CACHE_DIR" + (getcwd)))) + (add-before 'check 'set-home (lambda _ (setenv "HOME" (getcwd)))) + (add-before 'check 'set-mne-datasets-paths (lambda _ (let ((mne-sample-data #$(this-package-native-input -- cgit v1.2.3