Subject: [bug#62082] [PATCH] gnu: Add python-json-e.

From: Adam Faiz <[email-masked]>
Date: Fri, 10 Mar 2023 00:52:25 +0800

From e737a1a084085a211ad96dcb1033a566c06dd878 Mon Sep 17 00:00:00 2001
Message-Id: <e[email-masked]>
In-Reply-To: <f[email-masked]>
References: <f[email-masked]>
From: AwesomeAdam54321 <[email-masked]>
Date: Thu, 9 Mar 2023 23:14:22 +0800
Subject: [PATCH] gnu: Add python-json-e.

* gnu/packages/python-xyz.scm (python-json-e): New variable.
---
  gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++
  1 file changed, 39 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b4173da3fd..92ea561737 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26491,6 +26491,45 @@ (define-public python-xattr
  associated with file system objects (files, directories, symlinks, etc).")
      (license license:expat)))
  
+(define-public python-json-e
+  (package
+  (name "python-json-e")
+  (version "4.5.0")
+  (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+                (url "https://github.com/json-e/json-e")
+                (commit (string-append "v" version))))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "0m3rsl2wvcn1i781d7l4xp0vx58sn89y0fhsvmrczlvkbpywzb3a"))))
+  (build-system python-build-system)
+  (native-inputs
+   (list python-dateutil
+         python-freezegun
+         python-hypothesis
+         python-nose
+         python-pep8
+         python-pyyaml))
+  (arguments
+   (list #:phases
+         #~(modify-phases %standard-phases
+             (add-before 'build 'cd-to-py-dir
+               (lambda _
+                 (chdir "py")))
+             (replace 'check
+               (lambda _
+                 (invoke "nosetests"))))))
+  (home-page "https://json-e.js.org")
+  (synopsis
+   "Data-structure parameterizer for embedding context in JSON objects")
+  (description
+   "This package provides a data-structure parameterization system written for
+embedding context in JSON objects.")
+  (license license:mpl2.0)))
+
  (define-public python-json-logger
    (package
      (name "python-json-logger")
-- 
2.39.2