From 8c955b46c7a2ee41b2eca0fc84359425ed535f55 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Wed, 14 Feb 2024 13:01:20 +0100 Subject: [PATCH] gnu: Add python-efficient-apriori. * gnu/packages/python-science.scm (python-efficient-apriori): New variable. Change-Id: I30ee0c1f3f825a8c4573abfe598a63ca5594b5a0 --- gnu/packages/python-science.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index d85b7267daae80e36a19de794060c0a06398bb69..d4a89c2e9e9c0350cf5b7075d800bcb4600ae579 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2015, 2016, 2018, 2020-2025 Ricardo Wurmus ;;; Copyright © 2015 Federico Beffa ;;; Copyright © 2016 Ben Woodcroft -;;; Copyright © 2016 Hartmut Goebel +;;; Copyright © 2016,2024 Hartmut Goebel ;;; Copyright © 2016, 2021-2025 Efraim Flashner ;;; Copyright © 2016-2020, 2022 Marius Bakke ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice @@ -1336,6 +1336,28 @@ computing in Python. It extends both the @code{concurrent.futures} and numerical software for solving convex second-order cone programs (SOCPs).") (license license:gpl3))) +(define-public python-efficient-apriori + (package + (name "python-efficient-apriori") + (version "2.0.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "efficient_apriori" version)) + (sha256 + (base32 "0vmdp8qkir7jrmwgpzajssyxh6q78m0q16pr1v657vla9x5wxn2s")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--doctest-modules" "-vv" "efficient_apriori"))) + (native-inputs (list python-setuptools python-pytest)) + (home-page "https://github.com/tommyod/Efficient-Apriori") + (synopsis "An efficient Python implementation of the Apriori algorithm.") + (description "An efficient Python implementation of the Apriori algorithm, +which uncovers hidden structures in categorical data") + (license license:expat))) + (define-public python-fast-histogram (package (name "python-fast-histogram")