From patchwork Thu Dec 28 20:55:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 58144 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1EA3327BBEA; Thu, 28 Dec 2023 20:57:35 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2AA5427BBE2 for ; Thu, 28 Dec 2023 20:57:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIxRB-0005Xo-Ci; Thu, 28 Dec 2023 15:57:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIxR9-0005X1-AW for guix-patches@gnu.org; Thu, 28 Dec 2023 15:57:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIxR9-0006y1-2I for guix-patches@gnu.org; Thu, 28 Dec 2023 15:57:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIxR8-0006vv-G4 for guix-patches@gnu.org; Thu, 28 Dec 2023 15:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#64258] [PATCH v3 1/2] gnu: Add python-daft. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Dec 2023 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64258 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64258@debbugs.gnu.org Cc: Felix Gruber Received: via spool by 64258-submit@debbugs.gnu.org id=B64258.170379699426593 (code B ref 64258); Thu, 28 Dec 2023 20:57:02 +0000 Received: (at 64258) by debbugs.gnu.org; 28 Dec 2023 20:56:34 +0000 Received: from localhost ([127.0.0.1]:40414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIxQg-0006ur-1z for submit@debbugs.gnu.org; Thu, 28 Dec 2023 15:56:34 -0500 Received: from mout02.posteo.de ([185.67.36.66]:54073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIxQc-0006uQ-6O for 64258@debbugs.gnu.org; Thu, 28 Dec 2023 15:56:30 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1C931240101 for <64258@debbugs.gnu.org>; Thu, 28 Dec 2023 21:56:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1703796985; bh=/dqwvft+8X340ca9dDgL+zUZZf4Y6o2b+JNSdQmw4wU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=WPWFcrqc72oO1SUZ/0Uq3FxwsoCFrSfNGpBIvnHf+DR4UF5s0J15Uh5IJjxsyocwb IK+bg9zdCWkjl+SI04VJYDYMqldJ/PUtK7JQGmnJ5WmjiownaMT1Eb0MCR3Y9C3SPG 0cHYNDmfkirsXUJDSn95UQS+Oc6s/z4RMlK7szniTZL3pZRxQIbr5IXhWTRgkZwPdn Jj9LlQ/4i38k83aX8rVhebu7lH7abYUWe/5/8ak4Dsp2CrGON6J2k9m//WxnHPhneg z/1tFihc9UFjEozQ19xOsim41JVOIbybj7NYusZVsWOhFxGWkAcVcpKQRvormGM5hY vJmw8LK27GafQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T1LQc4nBwz6txb; Thu, 28 Dec 2023 21:56:24 +0100 (CET) From: Felix Gruber Date: Thu, 28 Dec 2023 20:55:28 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-daft): New variable. Change-Id: I546556c825662e5b8bff46e5a78e7c98c8cc55ed --- gnu/packages/python-xyz.scm | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ee689809a3..02ba55d339 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4197,6 +4197,53 @@ (define-public python-pomegranate Cython for speed.") (license license:expat))) +(define-public python-daft + (package + (name "python-daft") + (version "0.1.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "daft" version)) + (sha256 + (base32 + "1r8jsfavd624q2q61f863lk6has6mv5csswh39saafd5khwf0xry")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + '(list "-k" + (string-append + ;; The following tests compare matplotlib output with + ;; previously generated images. They fail due to minor + ;; differences in where matplotlib places labels. + "not test_bca[png]" + " and not test_classic[png]" + " and not test_deconvolution[png]" + " and not test_exoplanets[png]" + " and not test_fixed[png]" + " and not test_gaia[png]" + " and not test_galex[png]" + " and not test_huey_p_newton[png]" + " and not test_logo[png]" + " and not test_no_circles[png]" + " and not test_no_gray[png]" + " and not test_recursive[png]" + " and not test_thick_lines[png]" + " and not test_weaklensing[png]" + " and not test_wordy[png]")))) + (propagated-inputs (list python-matplotlib python-numpy)) + (native-inputs (list python-pytest)) + (home-page "https://docs.daft-pgm.org/") + (synopsis "PGM rendering library") + (description "Daft is a Python package that uses matplotlib to +render pixel-perfect probabilistic graphical models for publication in +a journal or on the internet. With a short Python script and an +intuitive model-building syntax you can design directed (Bayesian +Networks, directed acyclic graphs) and undirected (Markov random fields) +models and save them in any formats that matplotlib supports (including +PDF, PNG, EPS and SVG).") + (license license:expat))) + (define-public python-portalocker (package (name "python-portalocker") From patchwork Thu Dec 28 20:55:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 58145 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B4C1827BBE9; Thu, 28 Dec 2023 20:57:38 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AECB327BBE2 for ; Thu, 28 Dec 2023 20:57:36 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIxRB-0005Xk-6T; Thu, 28 Dec 2023 15:57:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIxR9-0005XR-Q7 for guix-patches@gnu.org; Thu, 28 Dec 2023 15:57:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIxR9-0006yQ-I1 for guix-patches@gnu.org; Thu, 28 Dec 2023 15:57:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIxR8-0006w3-VW for guix-patches@gnu.org; Thu, 28 Dec 2023 15:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#64258] [PATCH v3 2/2] gnu: Add python-pgmpy. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Dec 2023 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64258 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64258@debbugs.gnu.org Cc: Felix Gruber Received: via spool by 64258-submit@debbugs.gnu.org id=B64258.170379700226618 (code B ref 64258); Thu, 28 Dec 2023 20:57:02 +0000 Received: (at 64258) by debbugs.gnu.org; 28 Dec 2023 20:56:42 +0000 Received: from localhost ([127.0.0.1]:40418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIxQn-0006vF-Jf for submit@debbugs.gnu.org; Thu, 28 Dec 2023 15:56:41 -0500 Received: from mout02.posteo.de ([185.67.36.66]:37159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIxQl-0006uy-Vb for 64258@debbugs.gnu.org; Thu, 28 Dec 2023 15:56:40 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DBF14240103 for <64258@debbugs.gnu.org>; Thu, 28 Dec 2023 21:56:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1703796994; bh=tHSoUR5h2XaOKtKnHEt6B9tirYhmcdcNtP4NnLZTBk8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=jDPAdQ8n2uWTQcWenP0p3XDtvJ1At+fusmaWhuvUIssMS5FWo/8xn+ZcGA/AdItIt JBkttDatMolsGDmp7SZUYMHIMVaMSdvkPBxbgwBeQe1d97NjzQ/SQYx7kf2zD5XkE3 rDwahuTa6d39G7Wvt1WE9WPZQfOoD6vOA+jlVAKzeBFGd4ygpwrTQMjMrmqJTVka37 f98/RyT7utuFsO2RzTcCcjlbQOl5BcS2wtMZitsbosLQEPtn20g0OViVLAiFBstxF1 7AQ44lHgIMYRf3gbmAbBFmeuhbn4lyaeWsHUCKf5Bs3/q/MQU0TdohZSb5PpzJO/BL ViqL+4C/X8Kkg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T1LQp3Gm8z6tm4; Thu, 28 Dec 2023 21:56:34 +0100 (CET) From: Felix Gruber Date: Thu, 28 Dec 2023 20:55:29 +0000 Message-ID: <4a7f7dfaef47e3e5ff99e0344a26e890099ebcd7.1703796764.git.felgru@posteo.net> In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/statistics.scm (python-pgmpy): New variable. Change-Id: Ic9a42b534500cd1ed98869b8ac4bd3700ee3e2f6 --- gnu/packages/statistics.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 0c3a560562..5fa19c4217 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2021 Frank Pursel ;;; Copyright © 2022 Simon Tournier ;;; Copyright © 2023 gemmaro +;;; Copyright © 2023 Felix Gruber ;;; ;;; This file is part of GNU Guix. ;;; @@ -7667,3 +7668,40 @@ (define-public ruby-enumerable-statistics statistical summary in arrays and enumerables.") (home-page "https://github.com/mrkn/enumerable-statistics") (license license:expat))) + +(define-public python-pgmpy + (package + (name "python-pgmpy") + (version "0.1.24") + (source + (origin + (method git-fetch) ;pypi package does not include test data + (uri (git-reference + (url "https://github.com/pgmpy/pgmpy") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0fvzh6v0yhgdryczamvzhfy2ymywkh0ssx4rl47xnfvi43hnij90")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-daft + python-joblib + python-networkx + python-numpy + python-opt-einsum + python-pandas + python-pyparsing + python-pytorch + python-scikit-learn + python-scipy + python-statsmodels + python-tqdm)) + (native-inputs (list python-mock + python-pytest)) + (home-page "https://github.com/pgmpy/pgmpy") + (synopsis "Probabilistic Graphical Models library") + (description "This package provides a library for Probabilistic +Graphical Models. It can be used for learning (Structure and Parameter), +inference (Probabilistic and Causal), and simulations in Bayesian +Networks.") + (license license:expat)))