From patchwork Fri Jun 23 21:12:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 51240 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 5E63527BBE9; Fri, 23 Jun 2023 22:14:19 +0100 (BST) 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 A674C27BBE2 for ; Fri, 23 Jun 2023 22:14:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCo6W-00058B-LQ; Fri, 23 Jun 2023 17:14:04 -0400 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 1qCo6V-00057d-0Y for guix-patches@gnu.org; Fri, 23 Jun 2023 17:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCo6U-0007Rc-O8 for guix-patches@gnu.org; Fri, 23 Jun 2023 17:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCo6U-0003q5-DH for guix-patches@gnu.org; Fri, 23 Jun 2023 17:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64258] [PATCH 1/2] gnu: Add python-daft. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Jun 2023 21:14: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.168755481514702 (code B ref 64258); Fri, 23 Jun 2023 21:14:02 +0000 Received: (at 64258) by debbugs.gnu.org; 23 Jun 2023 21:13:35 +0000 Received: from localhost ([127.0.0.1]:39657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCo62-0003p4-SS for submit@debbugs.gnu.org; Fri, 23 Jun 2023 17:13:35 -0400 Received: from mout02.posteo.de ([185.67.36.66]:59181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCo5z-0003op-KO for 64258@debbugs.gnu.org; Fri, 23 Jun 2023 17:13:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1E91D240101 for <64258@debbugs.gnu.org>; Fri, 23 Jun 2023 23:13:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687554806; bh=f530qjtfIlitYQsAZ6uWROTkbDf4MPhueIM23Vl7xuE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=UGy4rhNtTH7yBfk+ikQL2Z8fCMslMkmfbO6T1ECsLslvoopWZYmq4bx1FlqzwwKtR kb3/EXLzwb899/SXgQ22Sg8EJnVqAdT2gFnkVuB++Ijz79ORriZT739sFzOrR3W7Ku 1fFbsceQZ0XprcmQWfhck/av0WHrkB1KVJ1KnC9oGiC8dynNv59znV2d5oT4/boXvh 6atE3l80hGocMn5LS5WtK/RChX/BBTF0uhC6rdMng2SOlRsyY9DBo0dNCEQfaB/rp/ q8w00By8WRSNkqFZh5725hFKGnqZv8q4hllBNdqVFlQw49gL1M6swhnZFJ74hRyXrJ aBfcdHsPKyiiA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qnqj13m56z9rxF; Fri, 23 Jun 2023 23:13:25 +0200 (CEST) From: Felix Gruber Date: Fri, 23 Jun 2023 21:12:50 +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. --- gnu/packages/python-xyz.scm | 49 ++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b650b71f3b..7ccf2d352b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -108,7 +108,7 @@ ;;; Copyright © 2021 Simon Streit ;;; Copyright © 2021 Daniel Meißner ;;; Copyright © 2021, 2022 Pradana Aumars -;;; Copyright © 2021, 2022 Felix Gruber +;;; Copyright © 2021, 2022, 2023 Felix Gruber ;;; Copyright © 2021 Sébastien Lerique ;;; Copyright © 2021 Raphaël Mélotte ;;; Copyright © 2021 ZmnSCPxj @@ -3962,6 +3962,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 "http://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")