gnu: Add python-databind-core.

* gnu/packages/python-xyz.scm (python-databind-core): New variable.

Change-Id: I45bf0ec5ef123ea20c50e2ca3caf930bfba45eea
This commit is contained in:
Ricardo Wurmus 2024-01-15 22:47:43 +01:00
parent 6b81503bae
commit 97692be948
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -536,6 +536,51 @@ (define-public python-ueberzug
@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")