* [bug#67184] [PATCH] gnu: Add python-multimethod.
@ 2023-11-14 23:11 Troy Figiel
2024-01-07 17:06 ` [bug#67184] [PATCH v2] " Troy Figiel
2024-01-07 19:43 ` [bug#67184] [PATCH] " Troy Figiel
0 siblings, 2 replies; 4+ messages in thread
From: Troy Figiel @ 2023-11-14 23:11 UTC (permalink / raw)
To: 67184
* 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#67184] [PATCH v2] gnu: Add python-multimethod.
2023-11-14 23:11 [bug#67184] [PATCH] gnu: Add python-multimethod Troy Figiel
@ 2024-01-07 17:06 ` Troy Figiel
2024-01-09 9:16 ` bug#67184: " Mathieu Othacehe
2024-01-07 19:43 ` [bug#67184] [PATCH] " Troy Figiel
1 sibling, 1 reply; 4+ messages in thread
From: Troy Figiel @ 2024-01-07 17:06 UTC (permalink / raw)
To: 67184
* 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#67184] [PATCH] gnu: Add python-multimethod.
2023-11-14 23:11 [bug#67184] [PATCH] gnu: Add python-multimethod Troy Figiel
2024-01-07 17:06 ` [bug#67184] [PATCH v2] " Troy Figiel
@ 2024-01-07 19:43 ` Troy Figiel
1 sibling, 0 replies; 4+ messages in thread
From: Troy Figiel @ 2024-01-07 19:43 UTC (permalink / raw)
To: 67184
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-09 9:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14 23:11 [bug#67184] [PATCH] gnu: Add python-multimethod Troy Figiel
2024-01-07 17:06 ` [bug#67184] [PATCH v2] " Troy Figiel
2024-01-09 9:16 ` bug#67184: " Mathieu Othacehe
2024-01-07 19:43 ` [bug#67184] [PATCH] " Troy Figiel
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.