guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 9aed8e406a9ac40da78192cf5c9039aab9b3f212
Author: Ghislain Vaillant <[email protected]>
AuthorDate: Sat Dec 27 18:12:36 2025 +0100
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 <[email protected]>
---
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 f9eef6986b..2ab3204f7f 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")