diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2025-11-03 00:08:02 +0100 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2025-11-03 15:14:25 +0100 |
| commit | 02a345973c2124429fcb916d51b2120ccfcc75ad (patch) | |
| tree | 36817390b9e9a2b15a40268df5541cefe1de588b | |
| parent | ff0b33c52f5f91de6222395255db46337a945577 (diff) | |
neuroscience: python-nitransforms: Update to 25.1.0.
* guix-science/packages/neuroscience.scm (python-nitransforms): Update to 25.1.0.
[source]: Switch to git.
[arguments]: Enable check.
| -rw-r--r-- | guix-science/packages/neuroscience.scm | 62 |
1 files changed, 51 insertions, 11 deletions
diff --git a/guix-science/packages/neuroscience.scm b/guix-science/packages/neuroscience.scm index 6dad6a0..69ca360 100644 --- a/guix-science/packages/neuroscience.scm +++ b/guix-science/packages/neuroscience.scm | |||
| @@ -1517,22 +1517,62 @@ and semantically clear code.") | |||
| 1517 | (define-public python-nitransforms | 1517 | (define-public python-nitransforms |
| 1518 | (package | 1518 | (package |
| 1519 | (name "python-nitransforms") | 1519 | (name "python-nitransforms") |
| 1520 | (version "24.1.4") ;NOTE: Version 25 requires numpy>=2.1. | 1520 | (version "25.1.0") |
| 1521 | (source | 1521 | (source |
| 1522 | (origin | 1522 | (origin |
| 1523 | (method url-fetch) | 1523 | (method git-fetch) |
| 1524 | (uri (pypi-uri "nitransforms" version)) | 1524 | (uri (git-reference |
| 1525 | (url "https://github.com/nipy/nitransforms") | ||
| 1526 | (commit version))) | ||
| 1527 | (file-name (git-file-name name version)) | ||
| 1525 | (sha256 | 1528 | (sha256 |
| 1526 | (base32 "0il1m5faf5k1s92wk6kwnfck07fw7j7i2418rcr6s60byjca98hd")))) | 1529 | (base32 "1aiffnp9bvxqav6rkdhw49nph416shzbciha3chbag03f9w2pw02")))) |
| 1527 | (build-system pyproject-build-system) | 1530 | (build-system pyproject-build-system) |
| 1528 | (arguments | 1531 | (arguments |
| 1529 | (list | 1532 | (list |
| 1530 | #:tests? #f)) ;Requires external data. | 1533 | #:test-flags |
| 1531 | (propagated-inputs (list python-h5py | 1534 | #~(list |
| 1532 | python-lxml | 1535 | ;; No traceback. |
| 1533 | python-nibabel | 1536 | "--ignore=nitransforms/linear.py" |
| 1534 | python-numpy | 1537 | "--ignore=nitransforms/nonlinear.py" |
| 1535 | python-scipy)) | 1538 | ;; Requires external data. |
| 1539 | "--ignore=nitransforms/tests/test_base.py" | ||
| 1540 | "--ignore=nitransforms/tests/test_io.py" | ||
| 1541 | "--ignore=nitransforms/tests/test_io_itk.py" | ||
| 1542 | "--ignore=nitransforms/tests/test_resampling.py" | ||
| 1543 | "--ignore=nitransforms/tests/test_surface.py" | ||
| 1544 | "--deselect=nitransforms/tests/test_cli.py::test_apply_linear" | ||
| 1545 | "--deselect=nitransforms/tests/test_cli.py::test_apply_nl" | ||
| 1546 | "--deselect=nitransforms/tests/test_conversions.py::test_fsl2lta_conversions" | ||
| 1547 | "--deselect=nitransforms/tests/test_conversions.py::test_itk2lta_conversions" | ||
| 1548 | "--deselect=nitransforms/tests/test_conversions.py::test_lta2fsl_conversions" | ||
| 1549 | "--deselect=nitransforms/tests/test_linear.py::test_loadsave" | ||
| 1550 | "--deselect=nitransforms/tests/test_linear.py::test_linear_save" | ||
| 1551 | "--deselect=nitransforms/tests/test_linear.py::test_mulmat_operator" | ||
| 1552 | "--deselect=nitransforms/tests/test_nonlinear.py::test_densefield_map" | ||
| 1553 | "--deselect=nitransforms/tests/test_nonlinear.py::test_displacements_to_filename" | ||
| 1554 | "--deselect=nitransforms/tests/test_nonlinear.py::test_bspline_map_gridpoints" | ||
| 1555 | "--deselect=nitransforms/tests/test_nonlinear.py::test_bsplines_references") | ||
| 1556 | #:phases | ||
| 1557 | #~(modify-phases %standard-phases | ||
| 1558 | (add-after 'unpack 'patch-pyproject | ||
| 1559 | (lambda _ | ||
| 1560 | (substitute* "pyproject.toml" | ||
| 1561 | ;; Relax minimum version for numpy. | ||
| 1562 | (("\"numpy.*>=.*\",") | ||
| 1563 | "\"numpy\",") | ||
| 1564 | ;; Do not stop after first test failure. | ||
| 1565 | (("-svx") | ||
| 1566 | "-sv")))) | ||
| 1567 | (add-before 'build 'set-version | ||
| 1568 | (lambda _ | ||
| 1569 | (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" | ||
| 1570 | #$version))) | ||
| 1571 | (add-before 'check 'set-home | ||
| 1572 | (lambda _ | ||
| 1573 | (setenv "HOME" "/tmp")))))) | ||
| 1574 | (propagated-inputs (list python-h5py python-lxml python-nibabel | ||
| 1575 | python-numpy python-scipy)) | ||
| 1536 | (native-inputs (list python-pytest | 1576 | (native-inputs (list python-pytest |
| 1537 | python-pytest-cov | 1577 | python-pytest-cov |
| 1538 | python-pytest-env | 1578 | python-pytest-env |
| @@ -1540,7 +1580,7 @@ and semantically clear code.") | |||
| 1540 | python-setuptools | 1580 | python-setuptools |
| 1541 | python-setuptools-scm)) | 1581 | python-setuptools-scm)) |
| 1542 | (home-page "https://nitransforms.readthedocs.io") | 1582 | (home-page "https://nitransforms.readthedocs.io") |
| 1543 | (synopsis "Neuroimaging spatial transforms in Python.") | 1583 | (synopsis "Neuroimaging spatial transforms in Python") |
| 1544 | (description | 1584 | (description |
| 1545 | "@code{niworkflows} is capable of converting between formats and resampling | 1585 | "@code{niworkflows} is capable of converting between formats and resampling |
| 1546 | images to apply transforms generated by the most popular neuroimaging packages | 1586 | images to apply transforms generated by the most popular neuroimaging packages |
