[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28/32: gnu: Add python-itemadapter.
From: |
guix-commits |
Subject: |
28/32: gnu: Add python-itemadapter. |
Date: |
Mon, 2 May 2022 09:16:15 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c0c16d6b8472563acf895578a3ebfeeb75b29fec
Author: Felix Gruber <felgru@posteo.net>
AuthorDate: Wed Apr 20 17:28:00 2022 +0000
gnu: Add python-itemadapter.
* gnu/packages/python-xyz.scm (python-itemadapter): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d371fb27ca..1c98ddb263 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29559,6 +29559,36 @@ sorted by priority and queues that are emptied in a
round-robin
fashion.")
(license license:bsd-3)))
+(define-public python-itemadapter
+ (package
+ (name "python-itemadapter")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "itemadapter" version))
+ (sha256
+ (base32 "083wp3h2brh8x19jbdr8rz3biqwp3jlqd0rfzcyrjyhssffsgdh5"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/scrapy/itemadapter")
+ (synopsis "Common interface for data container classes")
+ (description "The ItemAdapter class is a wrapper for data container
+objects, providing a common interface to handle objects of different
+types in an uniform manner, regardless of their underlying implementation.
+
+Currently supported types are:
+@itemize
+@item scrapy.item.Item
+@item dict
+@item dataclass-based classes
+@item attrs-based classes
+@item pydantic-based classes
+@end itemize
+
+Additionally, interaction with arbitrary types is supported by
+implementing a pre-defined interface.")
+ (license license:bsd-3)))
+
(define-public python-hypy-utils
(package
(name "python-hypy-utils")
- 11/32: gnu: aws-c-s3: Fix comment formatting., (continued)
- 11/32: gnu: aws-c-s3: Fix comment formatting., guix-commits, 2022/05/02
- 17/32: gnu: ugrep: Update to 3.7.9., guix-commits, 2022/05/02
- 20/32: gnu: apl: Remove input labels., guix-commits, 2022/05/02
- 22/32: gnu: fmt: Update to 8.1.1., guix-commits, 2022/05/02
- 05/32: gnu: aws-c-io: Fix comment formatting., guix-commits, 2022/05/02
- 27/32: gnu: Add python-queuelib., guix-commits, 2022/05/02
- 14/32: gnu: aws-lc: Fix checksum and enable tests., guix-commits, 2022/05/02
- 18/32: gnu: Add emacs-git-email., guix-commits, 2022/05/02
- 21/32: gnu: apl: Use G-expressions., guix-commits, 2022/05/02
- 26/32: gnu: Add python-pydispatcher., guix-commits, 2022/05/02
- 28/32: gnu: Add python-itemadapter.,
guix-commits <=
- 29/32: gnu: Add python-protego., guix-commits, 2022/05/02
- 32/32: gnu: Add python-scrapy., guix-commits, 2022/05/02