From 74b52b1ad836ad01de84c2135b836a7faca8280f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 14 Dec 2025 23:08:33 +0000 Subject: [PATCH] gnu: python-numdifftools: Update to 0.9.42. * gnu/packages/python-science.scm (python-numdifftools): Update to 0.9.42. [arguments] : Keep only exclusion markers. : Remove 'relax-requirements; add 'fix-pytest-config. [propagated-inputs]: Add python-matplotlib. [native-inputs]: Remove python-setuptools, python-setuptools-scm, and python-wheel; add python-pdm-backend. Change-Id: I87bdd34812df8771f53dd2ab8cfc4634ffb0b07d Signed-off-by: Rutherther --- gnu/packages/python-science.scm | 37 +++++++++++---------------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 47d12c37328c0796be99ea5048f68e87b3cd5d27..c395d90dd00c04b1e85486f7e32d637363412c60 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2040,49 +2040,36 @@ The supported distributions are: (define-public python-numdifftools (package (name "python-numdifftools") - (version "0.9.41") + (version "0.9.42") (source (origin (method url-fetch) (uri (pypi-uri "numdifftools" version)) (sha256 - (base32 "1d49wd5jqnl0500jyws0vb7nv4dy4bb5ml4z9qx1n8867k6hbxsf")))) + (base32 "1hgv3jhf4y9qrizkwfryj2b56zd0i2dvzig1y7r4ng193wbparl6")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 177 passed, 3 skipped, 2 deselected, 971 warnings #:test-flags - #~(list "--pyargs" "numdifftools" - "-k" (string-join - ;; Tests failing with error: TypeError: a must be an array - ;; of real numbers, see - ;; . - (list "not test_high_order_derivative" - "test_low_order_derivative_on_example_functions" - "test_sinx_div_x" - "test_complex_hessian_issue_35" - - "numdifftools.fornberg.Taylor" - "numdifftools.fornberg.derivative" - "numdifftools.fornberg.taylor") - " and not ")) + #~(list "-m" "not benchmark and not slow") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'relax-requirements + (add-after 'unpack 'fix-pytest-config (lambda _ - (substitute* "setup.py" - ;; We can run tests without deprecated pytest-runner. - (("setup_requires.*") ""))))))) + (substitute* "pyproject.toml" + ((" --cov=numdifftools --cov-report=xml") ""))))))) (native-inputs (list python-algopy python-line-profiler + python-pdm-backend python-pytest - python-setuptools - python-setuptools-scm - python-statsmodels - python-wheel)) + python-statsmodels)) (propagated-inputs (list python-numpy - python-scipy)) + python-scipy + ;; [optional] + python-matplotlib)) (home-page "https://github.com/pbrod/numdifftools") (synopsis "Solves automatic numerical differentiation problems") (description