guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 086b404fb3661c9372fabdf835c09e711fca8a9f
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Dec 29 15:01:31 2025 +0000

    gnu: Add python-diptest.
    
    * gnu/packages/statistics.scm (python-diptest): New variable.
    
    Change-Id: I7104617dfb182b85494febe2a483c7681cdb5929
---
 gnu/packages/statistics.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index a8065f6ef5..592d43b12d 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -709,6 +709,43 @@ covariance 
@url{https://github.com/vnmabus/dcor#sr14,[SR14]}
 @end itemize")
     (license license:expat)))
 
+(define-public python-diptest
+  (package
+    (name "python-diptest")
+    (version "0.10.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/RUrlus/diptest";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1j35v849yx6bq9w4bvlgbw9b2g3f1zlqxf63vv257dfx5qsa5x62"))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (list cmake-minimal ;TODO: propagate from python-scikit-build-core
+           pybind11
+           python-pytest
+           python-scikit-build-core))
+    (propagated-inputs
+     (list python-numpy
+           python-psutil))
+    (home-page "https://github.com/RUrlus/diptest";)
+    (synopsis "Hartigan's diptest")
+    (description
+     "This package provides a Python/C(++) implementation of
+@url{https://www.jstor.org/stable/2241144, Hartigan & Hartigan's dip test} for
+unimodality.
+
+The dip test measures multimodality in a sample by the maximum difference,
+over all sample points, between the empirical distribution function, and the
+unimodal distribution function that minimizes that maximum difference. Other
+than unimodality, it makes no further assumptions about the form of the null
+distribution.")
+    (license (list license:gpl2+    ;in pyproject.toml
+                   license:gpl3)))) ;in LICENSE
+
 (define-public python-dynesty
   (package
     (name "python-dynesty")

Reply via email to