[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: Add python-databind-core.
From: |
guix-commits |
Subject: |
05/07: gnu: Add python-databind-core. |
Date: |
Mon, 15 Jan 2024 17:34:13 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 97692be94855aab806433d16f0eb9adaab0f8916
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jan 15 22:47:43 2024 +0100
gnu: Add python-databind-core.
* gnu/packages/python-xyz.scm (python-databind-core): New variable.
Change-Id: I45bf0ec5ef123ea20c50e2ca3caf930bfba45eea
---
gnu/packages/python-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8fb1d5fc19..88cd0227de 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -536,6 +536,51 @@ workspaces.
@end itemize")
(license license:gpl3+)))
+(define-public python-databind-core
+ (package
+ (name "python-databind-core")
+ (version "4.4.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "databind.core" version))
+ (sha256
+ (base32 "130hr19kbzizx9n2q7cwfzfk20ii3cqmqjrzb16psnafll303k2d"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'fix-name
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((sitedir (site-packages inputs outputs))
+ (dist-info
+ (string-append sitedir "/databind_core-" #$version
".dist-info")))
+ (substitute* (string-append dist-info "/METADATA")
+ (("Name: databind-core")
+ "Name: databind.core"))
+ (substitute* (string-append dist-info "/RECORD")
+ (("databind_core") "databind.core"))
+ (rename-file dist-info
+ (string-append sitedir
+ "/databind.core-"
+ #$version ".dist-info"))))))))
+ (propagated-inputs
+ (list python-deprecated
+ python-nr-date
+ python-nr-stream
+ python-typeapi
+ python-typing-extensions))
+ (native-inputs
+ (list python-poetry-core python-pytest))
+ (home-page "https://niklasrosenstein.github.io/python-databind/core/")
+ (synopsis
+ "Library for de-/serializing Python dataclasses")
+ (description
+ "Databind is a library inspired by jackson-databind to de-/serialize
+Python dataclasses.")
+ (license license:expat)))
+
(define-public python-fire
(package
(name "python-fire")
- branch master updated (19db1551dc -> ddde736722), guix-commits, 2024/01/15
- 07/07: gnu: Add python-docspec., guix-commits, 2024/01/15
- 06/07: gnu: Add python-databind-json., guix-commits, 2024/01/15
- 03/07: gnu: Add python-nr-stream., guix-commits, 2024/01/15
- 04/07: gnu: Add python-typeapi., guix-commits, 2024/01/15
- 05/07: gnu: Add python-databind-core.,
guix-commits <=
- 02/07: gnu: Add python-nr-date., guix-commits, 2024/01/15
- 01/07: gnu: Add python-namex., guix-commits, 2024/01/15