From 9aed8e406a9ac40da78192cf5c9039aab9b3f212 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Sat, 27 Dec 2025 18:12:36 +0100 Subject: [PATCH] python-pymc: Fix build. * gnu/packages/statistics.scm (python-pymc): Fix build. [arguments]<#:phases>: Remove write-permissions, add relax-requirements. [native-inputs]: Add python-setuptools, remove python-pytest-cov. [propagated-inputs]: Remove python-fastprogress, add python-rich and python-threadpoolctl. Change-Id: I728af9fbb2d739ae2d3bca197dc3d0fb02d04076 Signed-off-by: Sharlatan Hellseher --- gnu/packages/statistics.scm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index f9eef6986bcceee5d1296c440938ba6494cc40c2..2ab3204f7f827d11a947e557da9e5cf2bdcc0e3f 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -1219,20 +1219,21 @@ algorithms for evaluating Bayesian evidence.") (substitute* "setup.py" (("version=versioneer.get_version\\(),") (format #f "version=~s," #$version))))) - ;; To create the compiledir for tests. - (add-before 'check 'write-permissions - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (setenv "HOME" "/tmp"))))))) - (native-inputs (list python-pytest-cov python-versioneer)) + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "requirements.txt" + (("scipy>=.*") + "scipy\n"))))))) + (native-inputs (list python-setuptools python-versioneer)) (propagated-inputs (list python-arviz python-cachetools python-cloudpickle - python-fastprogress python-numpy python-pandas python-pytensor + python-rich python-scipy + python-threadpoolctl python-typing-extensions)) (home-page "https://github.com/pymc-devs/pymc") (synopsis "Library for probabilistic programming in Python")