From deac84b29ed1670708971eac3c443ec93ec0e710 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 29 Dec 2025 13:55:53 +0000 Subject: [PATCH] gnu: python-biom-format: Update to 2.1.17. * gnu/packages/bioinformatics.scm (python-biom-format): Update to 2.1.17. [source] : Remove redundant logic. [arguments] : Only skip some doctest requiring Nose test runner. : Remove 'use-cython, 'build-extensions, and 'pandas-compatibility; add 'remove-local-source. [propagated-inputs]: Remove python-flake8 and python-future. [native-inputs]: Remove python-pytest-cov and python-wheel; add python-setuptools. Change-Id: Ib497f771e5de40b07df4964ebcddf6c40c15fc85 Signed-off-by: Rutherther --- gnu/packages/bioinformatics.scm | 63 +++++++++++++-------------------- 1 file changed, 24 insertions(+), 39 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 07da41d4adf9cb4f8fd4fac04c72c52a510f4b0d..42a18fafabc42457478cd42df7293b5b45d5c9bb 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -4113,60 +4113,45 @@ use-case, we encourage users to compose functions to achieve their goals.") (define-public python-biom-format (package (name "python-biom-format") - (version "2.1.16") + (version "2.1.17") (source (origin (method git-fetch) - ;; Use GitHub as source because PyPI distribution does not contain - ;; test data: https://github.com/biocore/biom-format/issues/693 (uri (git-reference - (url "https://github.com/biocore/biom-format") - (commit version))) + (url "https://github.com/biocore/biom-format") + (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 - "1npxjsi7r0w8diq6s37q21cqgrqifl7f483lfn72bn7qrvkvbpyz")) - (modules '((guix build utils))) - ;; Delete generated C files. - (snippet - '(for-each delete-file (find-files "." "\\.c"))))) + (base32 "0fmlrxcn8bgh8wccs2qzz5q08ivd3r3zva9h8zzr1jsbff7904fz")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 380 passed, 4 skipped, 16 warnings #:test-flags - '(list "-k" - (string-append ;; Unclear why this one fails. There is no backtrace. - "not test_to_dataframe_is_sparse" - ;; These need skbio, but that needs biom-format. - " and not test_align_tree_intersect_obs" - " and not test_align_tree_intersect_tips" - " and not test_align_tree_sample")) + ;; Doctests depend on Nose. + #~(list "--ignore=doc/sphinxext/numpydoc/numpydoc/tests/") #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'use-cython - (lambda _ (setenv "USE_CYTHON" "1"))) - (add-before 'check 'build-extensions - (lambda _ - ;; Cython extensions have to be built before running the tests. - (invoke "python" "setup.py" "build_ext" "--inplace"))) - (add-after 'unpack 'pandas-compatibility - (lambda _ - (substitute* "biom/tests/test_table.py" - (("import pandas.util.testing") - "import pandas.testing"))))))) + #~(modify-phases %standard-phases + (add-before 'check 'remove-local-source + (lambda _ + (copy-recursively "biom/tests" "tests") + (delete-file-recursively "biom") + (substitute* "tests/test_cli/test_validate_table.py" + ;; Help finding "examples" directory. + (("cur_path.rsplit\\(os.path.sep, 3\\)\\[0\\]") + (format #f "~s" (getcwd))))))))) + (native-inputs + (list python-cython + python-pytest + python-setuptools)) (propagated-inputs - (list python-anndata - python-click - python-flake8 - python-future + (list python-click python-h5py python-numpy python-pandas - ;;python-scikit-bio ;mutually recursive dependency - python-scipy)) - (native-inputs - (list python-cython python-pytest python-pytest-cov - python-wheel)) + python-scipy + ;; [optional] + python-anndata)) (home-page "https://www.biom-format.org") (synopsis "Biological Observation Matrix (BIOM) format utilities") (description