From e9a1806a70cd44972e212a46c75f563db212ea87 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Fri, 28 Aug 2026 15:58:47 +0200 Subject: electrophysiology: python-yasa: Update to 0.7.0. * guix-science/packages/electrophysiology.scm (python-yasa) [source]: Update to 0.7.0. [arguments]<#:test-flags>: Ignore tests requiring external data, network or optional dependencies. [propagated-inputs]: Remove python-{ipywidgets,pyriemann,sleepecg,tensorpac}. Add python-pooch. [native-inputs]: Add tzdata-for-tests. --- guix-science/packages/electrophysiology.scm | 39 ++++++++++++++++------------- 1 file 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.") (define-public python-yasa (package (name "python-yasa") - (version "0.6.5") + (version "0.7.0") (source (origin (method git-fetch) @@ -3700,33 +3700,40 @@ the Waveform Database (WFDB) specifications.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "05c7psn1cc03n75csbqz44mznn6hgkhgfchmsxpx3cl69fwbi8c5")))) + (base32 "01jal7l2101m7aw3qcsjkhqjqq7v6qdl3g4hgq35gzx95v5vrf2v")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list - ;; FIXME: Requires lightgbm. To be revisited when lightgbm is updated - ;; to a newer major version and provides Python bindings. - "--deselect=yasa/tests/test_staging.py::TestStaging") + ;; Requires external data. + "--ignore=tests/test_detection.py" + "--ignore=tests/test_heart.py" + "--ignore=tests/test_others.py" + "--ignore=tests/test_spectral.py" + "--ignore=tests/test_staging.py" + "--deselect=tests/test_plotting.py::TestPlotting::test_plot_hypnogram" + ;; Requires optional dependencies. + "--deselect=tests/test_io.py::TestIO::test_dependence" + ;; Requires network. + "--deselect=tests/test_fetchers.py::TestFetchers::test_fetch_kwargs" + "--deselect=tests/test_fetchers.py::TestFetchers::test_file_download") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'fix-pytest-configuration - (lambda _ - (substitute* "setup.cfg" - (("--cov") - "")))) (add-after 'unpack 'fix-requirements (lambda _ - (substitute* "setup.py" + (substitute* "pyproject.toml" ((".*lightgbm.*") "")))) + (add-before 'build 'set-home + (lambda _ + (setenv "HOME" + (getcwd)))) (add-before 'build 'set-numba-cache-dir (lambda _ (setenv "NUMBA_CACHE_DIR" (getcwd))))))) (propagated-inputs (list python-antropy - python-ipywidgets python-joblib python-lspopt python-matplotlib @@ -3734,13 +3741,11 @@ the Waveform Database (WFDB) specifications.") python-numba python-numpy python-pandas - python-pyriemann + python-pooch python-scikit-learn python-scipy - python-seaborn - python-sleepecg - python-tensorpac)) - (native-inputs (list python-pytest python-setuptools)) + python-seaborn)) + (native-inputs (list python-pytest python-setuptools tzdata-for-tests)) (home-page "https://yasa-sleep.org/") (synopsis "Yet Another Spindle Algorithm (YASA)") (description -- cgit v1.2.3