From a3c54627cf6ab6f1dff294d4b2b95428d9718a7b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 4 Jan 2026 21:24:25 +0000 Subject: [PATCH] gnu: python-pyamg: Update to 5.3.0. * gnu/packages/python-science.scm (python-pyamg): Update to 5.3.0. [arguments] : Remove local source instead in phase.. : Add 'pre-check. [native-inputs]: Remove python-wheel. Change-Id: I3f231c1201013b4cbc7a8fbda14937aa0685827e Signed-off-by: Rutherther --- gnu/packages/python-science.scm | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 1455f4c347002bee2e0141ef047008d509c84634..fc9482a311b7d2f2aaadce703ae8fd5ab5f55155 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2449,7 +2449,7 @@ different units.") (define-public python-pyamg (package (name "python-pyamg") - (version "5.0.1") + (version "5.3.0") (source (origin (method url-fetch) (uri (pypi-uri "pyamg" version)) @@ -2471,12 +2471,10 @@ different units.") "tests/bind_examples_bind.cpp")))) (sha256 (base32 - "0l3dliwynxyjvbgpmi2k8jqvkkw6fc00c8w69h6swhrkfh0ql12z")))) + "02w6xy3i0qcpsfc64zw8k15mi6qykq65h3d98vi9p6fdlkqx08sk")))) (arguments (list - #:test-flags - ;; Test installed package in order to find C++ modules. - #~(list "--pyargs" "pyamg.tests") + ;; tests: 40 passed, 1 skipped #:phases #~(modify-phases %standard-phases ;; Regenerate the autogenerated files. @@ -2491,7 +2489,11 @@ different units.") (("/usr/bin/env python3") (which "python3"))) (invoke "sh" "generate.sh")) (with-directory-excursion "pyamg/amg_core/tests" - (invoke "python" "bindthem.py" "bind_examples.h"))))))) + (invoke "python" "bindthem.py" "bind_examples.h")))) + (add-before 'check 'pre-check + (lambda _ + (copy-recursively "pyamg/tests" "tests") + (delete-file-recursively "pyamg")))))) (build-system pyproject-build-system) (native-inputs (list pybind11 @@ -2499,9 +2501,10 @@ different units.") python-pytest python-pyyaml python-setuptools - python-setuptools-scm - python-wheel)) - (propagated-inputs (list python-numpy python-scipy)) + python-setuptools-scm)) + (propagated-inputs + (list python-numpy + python-scipy)) (home-page "https://github.com/pyamg/pyamg") (synopsis "Algebraic Multigrid Solvers in Python") (description "PyAMG is a Python library of Algebraic Multigrid