diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-01-15 22:49:51 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2024-01-15 23:06:15 +0100 |
commit | 12ae026e51c8b031a413de2c9b483e68f1efaac0 (patch) | |
tree | 4478b1ee401611bd4f98b04e8a5fdbb327880925 /gnu/packages/python-xyz.scm | |
parent | 97692be94855aab806433d16f0eb9adaab0f8916 (diff) |
gnu: Add python-databind-json.
* gnu/packages/python-xyz.scm (python-databind-json): New variable.
Change-Id: Iaab64e28ba6772c14704ff67cffab21a2f555460
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 88cd0227de..61958d5eac 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -581,6 +581,47 @@ workspaces. Python dataclasses.") (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 (package (name "python-fire") |