[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/15: gnu: Add python-multimethod.
From: |
guix-commits |
Subject: |
12/15: gnu: Add python-multimethod. |
Date: |
Tue, 9 Jan 2024 04:30:06 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit fe9a30f2f662c8289d40c55979de43aee58a88e9
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Sun Jan 7 18:06:10 2024 +0100
gnu: Add python-multimethod.
* gnu/packages/python-xyz.scm (python-multimethod): New variable.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
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 1ed0b24199..46a5e81cb4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31744,6 +31744,30 @@ graph can be output for rendering by GraphViz or yEd.")
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")
- 03/15: gnu: Add python-python-snappy., (continued)
- 03/15: gnu: Add python-python-snappy., guix-commits, 2024/01/09
- 04/15: gnu: Add python-pytest-dotenv., guix-commits, 2024/01/09
- 06/15: gnu: Add python-jaraco-text., guix-commits, 2024/01/09
- 10/15: gnu: python-h5py: Reformat with guix style., guix-commits, 2024/01/09
- 14/15: gnu: Add python-persim., guix-commits, 2024/01/09
- 02/15: gnu: Add python-hdf5storage., guix-commits, 2024/01/09
- 07/15: gnu: Add python-jaraco-collections., guix-commits, 2024/01/09
- 11/15: gnu: Add python-pyreadstat., guix-commits, 2024/01/09
- 13/15: gnu: Add python-hopcroftkarp., guix-commits, 2024/01/09
- 15/15: gnu: Add python-ripser., guix-commits, 2024/01/09
- 12/15: gnu: Add python-multimethod.,
guix-commits <=