emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67184: closed ([PATCH] gnu: Add python-multimethod.)


From: GNU bug Tracking System
Subject: bug#67184: closed ([PATCH] gnu: Add python-multimethod.)
Date: Tue, 09 Jan 2024 09:17:02 +0000

Your message dated Tue, 09 Jan 2024 10:16:42 +0100
with message-id <87jzoidfyd.fsf@gnu.org>
and subject line Re: [bug#67184] [PATCH v2] gnu: Add python-multimethod.
has caused the debbugs.gnu.org bug report #67184,
regarding [PATCH] gnu: Add python-multimethod.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
67184: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67184
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-multimethod. Date: Wed, 15 Nov 2023 00:11:47 +0100
* 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 <c4droid@foxmail.com>
 ;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
 ;;; Copyright © 2023 Attila Lendvai <attila@lendvai.name>
+;;; Copyright © 2023 Troy Figiel <troy@troyfigiel.com>
 ;;;
 ;;; 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")
-- 
2.40.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#67184] [PATCH v2] gnu: Add python-multimethod. Date: Tue, 09 Jan 2024 10:16:42 +0100 User-agent: Gnus/5.13 (Gnus v5.13)
> * gnu/packages/python-xyz.scm (python-multimethod): New variable.

Applied, thanks,

Mathieu


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]