guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#67643] [PATCH 1/2] gnu: Add python-formulae.


From: Vinicius Monego
Subject: [bug#67643] [PATCH 1/2] gnu: Add python-formulae.
Date: Tue, 5 Dec 2023 15:30:18 +0000

* gnu/packages/statistics.scm (python-formulae): New variable.

Change-Id: I65f5c71fd30679b11fe370372d6992df54d86f19
---
 gnu/packages/statistics.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 95cc948d9f..30c6a9483e 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -2236,6 +2236,36 @@ (define-public python-pymc
 inference (VI) algorithms.")
     (license license:asl2.0)))
 
+(define-public python-formulae
+  (package
+    (name "python-formulae")
+    (version "0.5.1")
+    (source (origin
+              (method git-fetch)     ; PyPI is missing files required by tests
+              (uri (git-reference
+                    (url "https://github.com/bambinos/formulae";)
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0s22ggsss1zrz3bdw1zm3kwbm07bdlp0v1af8xhw8ymcg9sqcsly"))))
+    (build-system pyproject-build-system)
+    (arguments
+     ;; AssertionError: approx() is not supported in a boolean context.
+     (list #:test-flags #~(list "-k" "not test_basic and not test_degree")))
+    (propagated-inputs (list python-numpy python-pandas python-scipy))
+    (native-inputs (list python-black
+                         python-ipython
+                         python-pylint
+                         python-pytest
+                         python-pytest-cov))
+    (home-page "https://bambinos.github.io/formulae/";)
+    (synopsis "Formulas for mixed-effects models in Python")
+    (description
+     "@code{formulae} is a Python library that implements Wilkinson’s formulas
+for mixed-effects models.")
+    (license license:expat)))
+
 (define-public python-chaospy
   (package
     (name "python-chaospy")
-- 
2.39.2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]