~ruther/guix-local

9aed8e406a9ac40da78192cf5c9039aab9b3f212 — Ghislain Vaillant 2 months ago d313843
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 <sharlatanus@gmail.com>
1 files changed, 8 insertions(+), 7 deletions(-)

M gnu/packages/statistics.scm
M gnu/packages/statistics.scm => gnu/packages/statistics.scm +8 -7
@@ 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")