[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
30/107: gnu: python-biom-format: Use pyproject-build-system.
From: |
guix-commits |
Subject: |
30/107: gnu: python-biom-format: Use pyproject-build-system. |
Date: |
Wed, 1 Jan 2025 12:48:57 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit df61b7249a4761361abf3ddabbf99a14556b44da
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Dec 17 11:28:01 2024 +0100
gnu: python-biom-format: Use pyproject-build-system.
* gnu/packages/bioinformatics.scm (python-biom-format)[build-system]: Use
pyproject-build-system.
[arguments]: Replace phase 'disable-broken-tests with #:test-flags; enable
one
test; add phase 'build-extensions.
[native-inputs]: Remove python-nose.
Change-Id: I8399d9b05bdb6da89d8056d536ab7e25dc22f9c2
---
gnu/packages/bioinformatics.scm | 48 +++++++++++++----------------------------
1 file changed, 15 insertions(+), 33 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 42b79dc03a..59cfb1d330 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -3480,48 +3480,30 @@ use-case, we encourage users to compose functions to
achieve their goals.")
;; Delete generated C files.
(snippet
'(for-each delete-file (find-files "." "\\.c")))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
+ #: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 neeeds biom-format.
+ " and not test_align_tree_intersect_obs"
+ " and not test_align_tree_intersect_tips"
+ " and not test_align_tree_sample"))
#: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"))))
- (add-after 'unpack 'disable-broken-tests
- (lambda _
- (substitute* "biom/tests/test_util.py"
- (("^(.+)def test_biom_open_hdf5_no_h5py" m indent)
- (string-append indent
- "@npt.dec.skipif(True, msg='Guix')\n"
- m)))
- (substitute* "biom/tests/test_table.py"
- (("^(.+)def test_from_hdf5_issue_731" m indent)
- (string-append indent
- "@npt.dec.skipif(True, msg='Guix')\n"
- m))
- ;; Unclear why this one fails. There is no backtrace.
- (("^(.+)def test_to_dataframe_is_sparse" m indent)
- (string-append indent
- "@npt.dec.skipif(True, msg='Guix')\n"
- m))
- ;; These need skbio, but that neeeds biom-format.
- (("^(.+)def test_align_tree_intersect_obs" m indent)
- (string-append indent
- "@npt.dec.skipif(True, msg='Guix')\n"
- m))
- (("^(.+)def test_align_tree_intersect_tips" m indent)
- (string-append indent
- "@npt.dec.skipif(True, msg='Guix')\n"
- m))
- (("^(.+)def test_align_tree_sample" m indent)
- (string-append indent
- "@npt.dec.skipif(True, msg='Guix')\n"
- m))))))))
+ "import pandas.testing")))))))
(propagated-inputs
(list python-anndata
python-click
@@ -3533,7 +3515,7 @@ use-case, we encourage users to compose functions to
achieve their goals.")
;;python-scikit-bio ;mutually recursive dependency
python-scipy))
(native-inputs
- (list python-cython python-pytest python-pytest-cov python-nose))
+ (list python-cython python-pytest python-pytest-cov))
(home-page "https://www.biom-format.org")
(synopsis "Biological Observation Matrix (BIOM) format utilities")
(description
- 07/107: gnu: python-cachetools: Update to 5.5.0., (continued)
- 07/107: gnu: python-cachetools: Update to 5.5.0., guix-commits, 2025/01/01
- 11/107: gnu: Add python-time-machine., guix-commits, 2025/01/01
- 12/107: gnu: python-pytest-subprocess: Update to 1.5.2., guix-commits, 2025/01/01
- 13/107: gnu: python-scikit-build-core: Update to 0.10.7., guix-commits, 2025/01/01
- 14/107: gnu: python-awkward-cpp: Update to 43., guix-commits, 2025/01/01
- 04/107: gnu: python-bokeh: Fix build., guix-commits, 2025/01/01
- 03/107: gnu: python-statmake: Remove obsolete build phase., guix-commits, 2025/01/01
- 08/107: gnu: python-pyproject-api: Update to 1.8.0., guix-commits, 2025/01/01
- 10/107: gnu: python-nox: Update to 2024.10.09., guix-commits, 2025/01/01
- 09/107: gnu: python-pytest-qt: Update to 4.4.0., guix-commits, 2025/01/01
- 30/107: gnu: python-biom-format: Use pyproject-build-system.,
guix-commits <=
- 32/107: gnu: python-extension-helpers: Update to 1.2.0., guix-commits, 2025/01/01
- 51/107: gnu: python-email-validator: Update to 2.2.0., guix-commits, 2025/01/01
- 59/107: gnu: python-eventlet: Update to 0.38.2., guix-commits, 2025/01/01
- 19/107: gnu: Add python-legacy-cgi., guix-commits, 2025/01/01
- 24/107: gnu: Add python-devpi-server., guix-commits, 2025/01/01
- 28/107: gnu: python-webcolors: Update to 24.11.1., guix-commits, 2025/01/01
- 34/107: gnu: python-chardet: Update to 5.2.0., guix-commits, 2025/01/01
- 40/107: gnu: python-uvicorn: Update to 0.34.0., guix-commits, 2025/01/01
- 42/107: gnu: python-devpi-process: Add missing input., guix-commits, 2025/01/01
- 54/107: gnu: python-beniget: Update to 0.4.2.post1., guix-commits, 2025/01/01