diff options
| -rw-r--r-- | guix-science/packages/electrophysiology.scm | 14 |
1 files changed, 14 insertions, 0 deletions
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. ") | |||
| 734 | (substitute* "conpy/forward.py" | 734 | (substitute* "conpy/forward.py" |
| 735 | ((", disp=False\\)") | 735 | ((", disp=False\\)") |
| 736 | ")")))) | 736 | ")")))) |
| 737 | |||
| 738 | (add-after 'unpack 'fix-numpy-compatibility | ||
| 739 | (lambda _ | ||
| 740 | (substitute* (list "conpy/forward.py" "conpy/stats.py") | ||
| 741 | (("np\\.in1d") | ||
| 742 | "np.isin")))) | ||
| 743 | |||
| 737 | (add-after 'unpack 'fix-pytest-configuration | 744 | (add-after 'unpack 'fix-pytest-configuration |
| 738 | (lambda _ | 745 | (lambda _ |
| 739 | (substitute* "pyproject.toml" | 746 | (substitute* "pyproject.toml" |
| @@ -741,10 +748,17 @@ approach. ") | |||
| 741 | "") | 748 | "") |
| 742 | (("--cov=conpy") | 749 | (("--cov=conpy") |
| 743 | "")))) | 750 | "")))) |
| 751 | |||
| 752 | (add-before 'build 'set-numba-cache-dir | ||
| 753 | (lambda _ | ||
| 754 | (setenv "NUMBA_CACHE_DIR" | ||
| 755 | (getcwd)))) | ||
| 756 | |||
| 744 | (add-before 'check 'set-home | 757 | (add-before 'check 'set-home |
| 745 | (lambda _ | 758 | (lambda _ |
| 746 | (setenv "HOME" | 759 | (setenv "HOME" |
| 747 | (getcwd)))) | 760 | (getcwd)))) |
| 761 | |||
| 748 | (add-before 'check 'set-mne-datasets-paths | 762 | (add-before 'check 'set-mne-datasets-paths |
| 749 | (lambda _ | 763 | (lambda _ |
| 750 | (let ((mne-sample-data #$(this-package-native-input | 764 | (let ((mne-sample-data #$(this-package-native-input |
