[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/09: gnu: Add python-pymc.
From: |
guix-commits |
Subject: |
09/09: gnu: Add python-pymc. |
Date: |
Sun, 25 Jun 2023 09:53:06 -0400 (EDT) |
monego pushed a commit to branch master
in repository guix.
commit c55611ff3f6e2ae830e8168f375b76c90127bcbc
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sat May 20 19:10:56 2023 -0300
gnu: Add python-pymc.
* gnu/packages/statistics.scm (python-pymc): New variable.
---
gnu/packages/statistics.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index a689d14f2e..8eed0767e0 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -2173,6 +2173,63 @@ It includes functions for posterior analysis, data
storage, model checking,
comparison and diagnostics.")
(license license:asl2.0)))
+(define-public python-pymc
+ (package
+ (name "python-pymc")
+ (version "5.5.0")
+ (source (origin
+ (method git-fetch) ; no tests in PyPI
+ (uri (git-reference
+ (url "https://github.com/pymc-devs/pymc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "077xigv3lfcn9fqc14rsnam4v95fmqk2wpzfrgj08vg8m7f69wdj"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f ; tests are too computationally intensive
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'versioneer
+ (lambda _
+ (with-output-to-file "setup.cfg"
+ (lambda ()
+ (display "\
+[versioneer]
+VCS = git
+style = pep440
+versionfile_source = pymc/_version.py
+versionfile_build = pymc/_version.py
+tag_prefix =
+parentdir_prefix = pymc-
+")))
+ (invoke "versioneer" "install")
+ (substitute* "setup.py"
+ (("versioneer.get_version\\(\\)")
+ (string-append "\"" #$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))
+ (propagated-inputs (list python-arviz
+ python-cachetools
+ python-cloudpickle
+ python-fastprogress
+ python-numpy
+ python-pandas
+ python-pytensor
+ python-scipy
+ python-typing-extensions))
+ (home-page "https://github.com/pymc-devs/pymc")
+ (synopsis "Library for probabilistic programming in Python")
+ (description
+ "PyMC (formerly PyMC3) is a Python package for Bayesian statistical
+modeling focusing on advanced Markov chain Monte Carlo (MCMC) and variational
+inference (VI) algorithms.")
+ (license license:asl2.0)))
+
(define-public python-patsy
(package
(name "python-patsy")
- branch master updated (c210dbe43e -> c55611ff3f), guix-commits, 2023/06/25
- 02/09: gnu: Add python-altair., guix-commits, 2023/06/25
- 01/09: gnu: Add python-vega-datasets., guix-commits, 2023/06/25
- 05/09: gnu: Add python-xarray-einstats., guix-commits, 2023/06/25
- 03/09: gnu: Add python-einops., guix-commits, 2023/06/25
- 04/09: gnu: python-xarray: Update to 2023.6.0., guix-commits, 2023/06/25
- 06/09: gnu: Add python-arviz., guix-commits, 2023/06/25
- 08/09: gnu: Add python-pytensor., guix-commits, 2023/06/25
- 09/09: gnu: Add python-pymc.,
guix-commits <=
- 07/09: gnu: Add python-fastprogress., guix-commits, 2023/06/25