diff options
| -rw-r--r-- | guix-science/packages/electrophysiology.scm | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/guix-science/packages/electrophysiology.scm b/guix-science/packages/electrophysiology.scm index 0afcdd7..b8054d9 100644 --- a/guix-science/packages/electrophysiology.scm +++ b/guix-science/packages/electrophysiology.scm | |||
| @@ -3691,7 +3691,7 @@ the Waveform Database (WFDB) specifications.") | |||
| 3691 | (define-public python-yasa | 3691 | (define-public python-yasa |
| 3692 | (package | 3692 | (package |
| 3693 | (name "python-yasa") | 3693 | (name "python-yasa") |
| 3694 | (version "0.6.5") | 3694 | (version "0.7.0") |
| 3695 | (source | 3695 | (source |
| 3696 | (origin | 3696 | (origin |
| 3697 | (method git-fetch) | 3697 | (method git-fetch) |
| @@ -3700,33 +3700,40 @@ the Waveform Database (WFDB) specifications.") | |||
| 3700 | (commit (string-append "v" version)))) | 3700 | (commit (string-append "v" version)))) |
| 3701 | (file-name (git-file-name name version)) | 3701 | (file-name (git-file-name name version)) |
| 3702 | (sha256 | 3702 | (sha256 |
| 3703 | (base32 "05c7psn1cc03n75csbqz44mznn6hgkhgfchmsxpx3cl69fwbi8c5")))) | 3703 | (base32 "01jal7l2101m7aw3qcsjkhqjqq7v6qdl3g4hgq35gzx95v5vrf2v")))) |
| 3704 | (build-system pyproject-build-system) | 3704 | (build-system pyproject-build-system) |
| 3705 | (arguments | 3705 | (arguments |
| 3706 | (list | 3706 | (list |
| 3707 | #:test-flags | 3707 | #:test-flags |
| 3708 | #~(list | 3708 | #~(list |
| 3709 | ;; FIXME: Requires lightgbm. To be revisited when lightgbm is updated | 3709 | ;; Requires external data. |
| 3710 | ;; to a newer major version and provides Python bindings. | 3710 | "--ignore=tests/test_detection.py" |
| 3711 | "--deselect=yasa/tests/test_staging.py::TestStaging") | 3711 | "--ignore=tests/test_heart.py" |
| 3712 | "--ignore=tests/test_others.py" | ||
| 3713 | "--ignore=tests/test_spectral.py" | ||
| 3714 | "--ignore=tests/test_staging.py" | ||
| 3715 | "--deselect=tests/test_plotting.py::TestPlotting::test_plot_hypnogram" | ||
| 3716 | ;; Requires optional dependencies. | ||
| 3717 | "--deselect=tests/test_io.py::TestIO::test_dependence" | ||
| 3718 | ;; Requires network. | ||
| 3719 | "--deselect=tests/test_fetchers.py::TestFetchers::test_fetch_kwargs" | ||
| 3720 | "--deselect=tests/test_fetchers.py::TestFetchers::test_file_download") | ||
| 3712 | #:phases | 3721 | #:phases |
| 3713 | #~(modify-phases %standard-phases | 3722 | #~(modify-phases %standard-phases |
| 3714 | (add-after 'unpack 'fix-pytest-configuration | ||
| 3715 | (lambda _ | ||
| 3716 | (substitute* "setup.cfg" | ||
| 3717 | (("--cov") | ||
| 3718 | "")))) | ||
| 3719 | (add-after 'unpack 'fix-requirements | 3723 | (add-after 'unpack 'fix-requirements |
| 3720 | (lambda _ | 3724 | (lambda _ |
| 3721 | (substitute* "setup.py" | 3725 | (substitute* "pyproject.toml" |
| 3722 | ((".*lightgbm.*") | 3726 | ((".*lightgbm.*") |
| 3723 | "")))) | 3727 | "")))) |
| 3728 | (add-before 'build 'set-home | ||
| 3729 | (lambda _ | ||
| 3730 | (setenv "HOME" | ||
| 3731 | (getcwd)))) | ||
| 3724 | (add-before 'build 'set-numba-cache-dir | 3732 | (add-before 'build 'set-numba-cache-dir |
| 3725 | (lambda _ | 3733 | (lambda _ |
| 3726 | (setenv "NUMBA_CACHE_DIR" | 3734 | (setenv "NUMBA_CACHE_DIR" |
| 3727 | (getcwd))))))) | 3735 | (getcwd))))))) |
| 3728 | (propagated-inputs (list python-antropy | 3736 | (propagated-inputs (list python-antropy |
| 3729 | python-ipywidgets | ||
| 3730 | python-joblib | 3737 | python-joblib |
| 3731 | python-lspopt | 3738 | python-lspopt |
| 3732 | python-matplotlib | 3739 | python-matplotlib |
| @@ -3734,13 +3741,11 @@ the Waveform Database (WFDB) specifications.") | |||
| 3734 | python-numba | 3741 | python-numba |
| 3735 | python-numpy | 3742 | python-numpy |
| 3736 | python-pandas | 3743 | python-pandas |
| 3737 | python-pyriemann | 3744 | python-pooch |
| 3738 | python-scikit-learn | 3745 | python-scikit-learn |
| 3739 | python-scipy | 3746 | python-scipy |
| 3740 | python-seaborn | 3747 | python-seaborn)) |
| 3741 | python-sleepecg | 3748 | (native-inputs (list python-pytest python-setuptools tzdata-for-tests)) |
| 3742 | python-tensorpac)) | ||
| 3743 | (native-inputs (list python-pytest python-setuptools)) | ||
| 3744 | (home-page "https://yasa-sleep.org/") | 3749 | (home-page "https://yasa-sleep.org/") |
| 3745 | (synopsis "Yet Another Spindle Algorithm (YASA)") | 3750 | (synopsis "Yet Another Spindle Algorithm (YASA)") |
| 3746 | (description | 3751 | (description |
