From patchwork Wed Apr 20 17:27:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38708 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 51DAB27BBEA; Wed, 20 Apr 2022 18:29:48 +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 09D0E27BBE9 for ; Wed, 20 Apr 2022 18:29:48 +0100 (BST) Received: from localhost ([::1]:36628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE9D-0000HI-5f for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8W-0007PQ-1x for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8V-0003Ci-Q0 for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8V-0006JW-NF for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 2/8] gnu: Add python-pydispatcher. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 17:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55044 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55044@debbugs.gnu.org Cc: Felix Gruber Received: via spool by 55044-submit@debbugs.gnu.org id=B55044.165047571624158 (code B ref 55044); Wed, 20 Apr 2022 17:29:03 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:36 +0000 Received: from localhost ([127.0.0.1]:47337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7x-0006H6-Oj for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:36 -0400 Received: from mout01.posteo.de ([185.67.36.65]:48071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7t-0006GO-EN for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 99B06240027 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475699; bh=fCxblpGhjBGRxtBGGXGShwCZ2lPXy4Lw6xChqZ/1EGA=; h=From:To:Cc:Subject:Date:From; b=P6KDELp8DeMUyUZoSI6Xz0tl9IzgFZTMz9oJF0EF/1N9gLXW/0OABc2R/1V2UnSoX 2TQxqnZkbkTuQw285SXeeBEEzTsvrPSX8CU8xQCH3AptxU802n2TvuUGfp3/ogLv6H 0Q3HEkzYZlD/D7nSD/Qz9ig4jpKr2xr2kH/RblMwnZwLTs1aIFWDUWOjJs6zOGHdC2 XrvcwryJ59KXBi33P2Zx9lpdhH2S40SqM/rUYKLf2+EQ83pchGFJ41zyTzwH+C7e4Z Jg+stqvGNqLENqTjQ1UQgBB6mW6jD37A/L5+SDE4AnZc24No7jsRhk1tsIOVW80Nak 99c+H8d7fIMgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71G6ph1z9rxW; Wed, 20 Apr 2022 19:28:18 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:27:58 +0000 Message-Id: <20220420172804.8849-2-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-pydispatcher): New variable. --- gnu/packages/python-xyz.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9a5d311680..78310e373a 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 Pradana Aumars -;;; Copyright © 2021 Felix Gruber +;;; Copyright © 2021, 2022 Felix Gruber ;;; Copyright © 2021 Sébastien Lerique ;;; Copyright © 2021 Raphaël Mélotte ;;; Copyright © 2021 ZmnSCPxj @@ -29534,3 +29534,34 @@ match a given regular expression, or count possible matches efficiently. It uses the parsed regular expression, so you get a much more accurate result than trying to just split strings.") (license license:asl2.0))) + +(define-public python-pydispatcher + (package + (name "python-pydispatcher") + (version "2.0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyDispatcher" version)) + (sha256 + (base32 "1bswbmhlbqdxlgbxlb6xrlm4k253sg8nvpl1whgsys8p3fg0cw2m")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (native-inputs (list python-pytest)) + (home-page "http://pydispatcher.sourceforge.net") + (synopsis "Multi-producer-multi-consumer signal dispatching mechanism") + (description "PyDispatcher is an enhanced version of +Patrick K. O’Brien’s original dispatcher.py module. It provides the +Python programmer with a robust mechanism for event routing within +various application contexts. + +Included in the package are the robustapply and saferef modules, which +provide the ability to selectively apply arguments to callable objects +and to reference instance methods using weak-references.") + (license license:bsd-3)))