From patchwork Tue Nov 14 23:11:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 56471 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 8AAE127BBEA; Wed, 15 Nov 2023 01:57:54 +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 BFCD227BBE2 for ; Wed, 15 Nov 2023 01:57:49 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r359h-0008Ng-9i; Tue, 14 Nov 2023 20:57:25 -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 1r359c-0008My-9Z for guix-patches@gnu.org; Tue, 14 Nov 2023 20:57:20 -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 1r359c-0002h3-1V for guix-patches@gnu.org; Tue, 14 Nov 2023 20:57:20 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r35AI-0007RW-Et for guix-patches@gnu.org; Tue, 14 Nov 2023 20:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67184] [PATCH] gnu: Add python-multimethod. Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Nov 2023 01:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67184 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67184@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170001344328478 (code B ref -1); Wed, 15 Nov 2023 01:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Nov 2023 01:57:23 +0000 Received: from localhost ([127.0.0.1]:34397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r359e-0007PA-Mj for submit@debbugs.gnu.org; Tue, 14 Nov 2023 20:57:23 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r32aK-0002wF-Cn for submit@debbugs.gnu.org; Tue, 14 Nov 2023 18:12:48 -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 1r32ZY-0007KC-5V for guix-patches@gnu.org; Tue, 14 Nov 2023 18:11:56 -0500 Received: from mout-y-111.mailbox.org ([2001:67c:2050:103:465::111]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1r32ZW-0007jy-8i for guix-patches@gnu.org; Tue, 14 Nov 2023 18:11:55 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-111.mailbox.org (Postfix) with ESMTPS id 4SVMW82XPHz9tcX for ; Wed, 15 Nov 2023 00:11:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1700003508; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WHHw5LNJRU9+D1Q+PzQPDlmWFniq9VhSj/SmOFcwFqc=; b=zLB4QYhp8Jra0R3DTAV6mK512TSdclsQD7KLlFPkYdAK/yLkJeBxvwIK9cWMwIrmaILN0c lYHZ0oeUEmh3y6XHKnXsXXk/ulBSRaWawpdbUbdJ1FE/BretzF+WbEF7caP19+2zQncGCP MrgplPB8+V6ZkExFRJHB7SGzq+z2hK9EuKU53wyp0jLxFKeBH2lyNFevThA/2OXPWxdbFb TBsOL46q08IePFpSBzAmGfS7HkUTOmFw+8rm8ybTNWGPXXlSau5FWKw9IAR8QI0I2N5lKm zk1zguWRoN4IEsiXk2En38wmaES5Coh9KIe2SnablrcZj3PXpKZHay7nsD23rw== From: Troy Figiel Date: Wed, 15 Nov 2023 00:11:47 +0100 Message-ID: <87edgs9bgs.fsf@troyfigiel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4SVMW82XPHz9tcX Received-SPF: pass client-ip=2001:67c:2050:103:465::111; envelope-from=troy@troyfigiel.com; helo=mout-y-111.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 14 Nov 2023 20:57:16 -0500 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-multimethod): New variable. Change-Id: Idef59632bddbcb0689820790d618f78105ac929d --- gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e521c1580d..a705ee7ca3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -145,6 +145,7 @@ ;;; Copyright © c4droid ;;; Copyright © 2023 Janneke Nieuwenhuizen ;;; Copyright © 2023 Attila Lendvai +;;; Copyright © 2023 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -31271,6 +31272,30 @@ (define-public python-multipledispatch function implementations based on the types of the arguments.") (license license:bsd-3))) +(define-public python-multimethod + (package + (name "python-multimethod") + (version "1.10") + (source + (origin + ;; No tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/coady/multimethod") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07xv92q7f4bkp6dzkqvcv0zxr11729qdak4s3ldmbhdwgsf44g5h")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest)) + (home-page "https://github.com/coady/multimethod") + (synopsis "Python support for multiple argument dispatching") + (description + "This package provides a decorator for adding multiple argument +dispatching to functions. The decorator creates a multimethod object as +needed and registers the function with its annotations.") + (license license:asl2.0))) + (define-public python-logical-unification (package (name "python-logical-unification")