From unknown Sun Jun 22 17:16:49 2025 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Spam-Score: 0.0 (/) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * 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 =C2=A9 c4droid ;;; Copyright =C2=A9 2023 Janneke Nieuwenhuizen ;;; Copyright =C2=A9 2023 Attila Lendvai +;;; Copyright =C2=A9 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))) =20 +(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") --=20 2.40.1 From unknown Sun Jun 22 17:16:49 2025 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: Sun, 07 Jan 2024 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67184 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67184@debbugs.gnu.org Received: via spool by 67184-submit@debbugs.gnu.org id=B67184.17046566332939 (code B ref 67184); Sun, 07 Jan 2024 19:44:01 +0000 Received: (at 67184) by debbugs.gnu.org; 7 Jan 2024 19:43:53 +0000 Received: from localhost ([127.0.0.1]:33912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMZ3o-0000lK-NP for submit@debbugs.gnu.org; Sun, 07 Jan 2024 14:43:52 -0500 Received: from mout-p-103.mailbox.org ([80.241.56.161]:55382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMZ3l-0000l1-Em for 67184@debbugs.gnu.org; Sun, 07 Jan 2024 14:43:51 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (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-p-103.mailbox.org (Postfix) with ESMTPS id 4T7SKz4rCwz9sT7 for <67184@debbugs.gnu.org>; Sun, 7 Jan 2024 20:43:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1704656615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QftllCfE1SumXMQEO5O90oxA6l2iWu2vHSDGLeNwLwo=; b=RXupyRqk6EleR4Li3XqOlbsKuq5ElHkhsBaLDEdrJR0rSySjcSyPyInQeOIEpBspDC5tfC B29zvSpTVkqhQU/JRSWzisRPCMB0hY4cMFLZ9rOjcnWMNzPspgun96mvGLU7ZsJ6RKF805 Oy51sl6Lrap7AbuK+HK/EOJncXSdWCz/LTaKQi4YNFxzAeTjtBb33vGCOcX6BsfF9/3q6y 8QFmSbNbG6/YKfJW89lxqKze00nOQdISt0UsT5NoDX7B54fxjZs1yszBGbjc6esLcJTr0h Nwuzt2Ybx2uVp+kndELBIPI4BkmT+LD/MvPz1yLailLoIKVSpHO/IlcIRsYf8w== From: Troy Figiel In-Reply-To: <87edgs9bgs.fsf@troyfigiel.com> (Troy Figiel's message of "Wed, 15 Nov 2023 00:11:47 +0100") References: <87edgs9bgs.fsf@troyfigiel.com> Date: Sun, 07 Jan 2024 20:43:31 +0100 Message-ID: <87ttnp3p5o.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4T7SKz4rCwz9sT7 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I noticed that the first few patches I sent to Guix, were sent without a base-commit. I have rebased the patch that follows on master and given it a base-commit. Best wishes, Troy From unknown Sun Jun 22 17:16:49 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67184] [PATCH v2] gnu: Add python-multimethod. References: <87edgs9bgs.fsf@troyfigiel.com> In-Reply-To: <87edgs9bgs.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 Jan 2024 19:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67184 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67184@debbugs.gnu.org Received: via spool by 67184-submit@debbugs.gnu.org id=B67184.17046566843059 (code B ref 67184); Sun, 07 Jan 2024 19:45:03 +0000 Received: (at 67184) by debbugs.gnu.org; 7 Jan 2024 19:44:44 +0000 Received: from localhost ([127.0.0.1]:33917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMZ4e-0000nH-1R for submit@debbugs.gnu.org; Sun, 07 Jan 2024 14:44:44 -0500 Received: from mout-p-101.mailbox.org ([80.241.56.151]:53590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMZ4b-0000mz-KE for 67184@debbugs.gnu.org; Sun, 07 Jan 2024 14:44:42 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.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-p-101.mailbox.org (Postfix) with ESMTPS id 4T7SM00lhhz9sn5 for <67184@debbugs.gnu.org>; Sun, 7 Jan 2024 20:44:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1704656668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=awCkbcprplNj9Cgi10ojxvy1xCMp7QkGQ33ZC2wEQdU=; b=af3B4Fe8Zh6LnNl8fOljdmtOYwp30k/FJpG3lzO1/2z0UxNcVF6aF5VUmZEZYiyh+vDfNw Maef8jsldtSr/uYzxUJdfPjAv8luwfYAre1ihj8Hr019DSYxpTZx3+oMEeE34FHxB9U8Wl xNXaHt2n61u7T5XmJWRgn02a8XT7cCJSCE7+055uSOII680v3EnQDSHkOivibuiCKZ3rnp bLs3gB4AeeR3qzpju+1fsBEDoKOGQIiAn5RXR01dLhiczKlRYyrp4tgpnQ0S0vaLSF1Btr nutqVH+Ilh2mJBx06ZFwN7nR9ZK6nBLtiK8lo1jqg9OHbLPWL8A/2GsdXD9Eww== From: Troy Figiel Date: Sun, 7 Jan 2024 18:06:10 +0100 Message-ID: <87sf393p44.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/python-xyz.scm (python-multimethod): New variable. --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f8bb943122..b378faf536 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31628,6 +31628,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") base-commit: 5f8a993aa85554ca09bd27139230d7664107e1b6 -- 2.42.0 From unknown Sun Jun 22 17:16:49 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Troy Figiel Subject: bug#67184: closed (Re: [bug#67184] [PATCH v2] gnu: Add python-multimethod.) Message-ID: References: <87jzoidfyd.fsf@gnu.org> <87edgs9bgs.fsf@troyfigiel.com> X-Gnu-PR-Message: they-closed 67184 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 67184@debbugs.gnu.org Date: Tue, 09 Jan 2024 09:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1704791822-667-1" This is a multi-part message in MIME format... ------------=_1704791822-667-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #67184: [PATCH] gnu: Add python-multimethod. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 67184@debbugs.gnu.org. --=20 67184: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D67184 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1704791822-667-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 67184-done) by debbugs.gnu.org; 9 Jan 2024 09:17:00 +0000 Received: from localhost ([127.0.0.1]:38351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rN8EF-0000AT-RT for submit@debbugs.gnu.org; Tue, 09 Jan 2024 04:17:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rN8ED-0000AE-B6 for 67184-done@debbugs.gnu.org; Tue, 09 Jan 2024 04:16:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rN8E1-0001nR-3e; Tue, 09 Jan 2024 04:16:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=DmH1K7b9ciZ5NAYpAdNTRvBsnu81yLwBHLjCO+n8boI=; b=XU5bVajJKA7pq+zzCICn zb2o8uhwBgMeLfUAC6acbP33CsX1FKUcXsDj6s7bNrYPeKTwiBA/5PppbhxJjQCfIW51O+bAU09eC aCFq+QVJAPPh7d/qsA3EjWmx/QmoD7Z/4dITZqSNgocsfhoZimDCvTZyR5kQAwVpxIhDipcGB5Thn AHuIffitSpy2W5NhASSxjY7e29q3ZiE+DyWwDnkn/PSkR9+7oCexQEdlkNAoXHLXV/dznf1vAJe/P sNJ8r6zAvqRzlR9yz3iCQnJiXIYhBq8YfEUKC5WPEZBFrq1DWp9Y5M6yZZPFgi3KC3Ny2qR+rNciB MZ0CISVjOFUioA==; From: Mathieu Othacehe To: Troy Figiel Subject: Re: [bug#67184] [PATCH v2] gnu: Add python-multimethod. In-Reply-To: <87sf393p44.fsf@troyfigiel.com> (Troy Figiel's message of "Sun, 7 Jan 2024 18:06:10 +0100") References: <87edgs9bgs.fsf@troyfigiel.com> <87sf393p44.fsf@troyfigiel.com> Date: Tue, 09 Jan 2024 10:16:42 +0100 Message-ID: <87jzoidfyd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 67184-done Cc: 67184-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > * gnu/packages/python-xyz.scm (python-multimethod): New variable. Applied, thanks, Mathieu ------------=_1704791822-667-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python-multimethod. Date: Wed, 15 Nov 2023 00:11:47 +0100 Message-ID: <87edgs9bgs.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * 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 =C2=A9 c4droid ;;; Copyright =C2=A9 2023 Janneke Nieuwenhuizen ;;; Copyright =C2=A9 2023 Attila Lendvai +;;; Copyright =C2=A9 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))) =20 +(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") --=20 2.40.1 ------------=_1704791822-667-1--