mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 07:27:48 -05:00
gnu: Add python-databind-json.
* gnu/packages/python-xyz.scm (python-databind-json): New variable. Change-Id: Iaab64e28ba6772c14704ff67cffab21a2f555460
This commit is contained in:
parent
97692be948
commit
12ae026e51
1 changed files with 41 additions and 0 deletions
|
@ -581,6 +581,47 @@ (define-public python-databind-core
|
||||||
Python dataclasses.")
|
Python dataclasses.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public python-databind-json
|
||||||
|
(package
|
||||||
|
(name "python-databind-json")
|
||||||
|
(version "4.4.2")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (pypi-uri "databind.json" version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1lm864d7arfq0pw64hyc83bwn1z94wjg7a22q1xf0qkjynqs70gg"))))
|
||||||
|
(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_json-" #$version ".dist-info")))
|
||||||
|
(substitute* (string-append dist-info "/METADATA")
|
||||||
|
(("Name: databind-json")
|
||||||
|
"Name: databind.json"))
|
||||||
|
(substitute* (string-append dist-info "/RECORD")
|
||||||
|
(("databind_json") "databind.json"))
|
||||||
|
(rename-file dist-info
|
||||||
|
(string-append sitedir
|
||||||
|
"/databind.json-"
|
||||||
|
#$version ".dist-info"))))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list python-databind-core python-nr-date
|
||||||
|
python-typeapi python-typing-extensions))
|
||||||
|
(native-inputs (list python-poetry-core python-pytest))
|
||||||
|
(home-page "https://niklasrosenstein.github.io/python-databind/json/")
|
||||||
|
(synopsis
|
||||||
|
"De-/serialize Python dataclasses to or from JSON payloads")
|
||||||
|
(description
|
||||||
|
"The @code{databind.json} package implements the de-/serialization to or
|
||||||
|
from JSON payloads using the @code{databind.core} framework.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-fire
|
(define-public python-fire
|
||||||
(package
|
(package
|
||||||
(name "python-fire")
|
(name "python-fire")
|
||||||
|
|
Loading…
Reference in a new issue