diff options
author | Oleg Pykhalov <go.wigust@gmail.com> | 2017-07-15 10:19:36 +0300 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2017-07-15 10:51:34 +0200 |
commit | 841e59083d0481c9efcbe5e3bb4c728ad8cbd044 (patch) | |
tree | 7c45957ed3d1b5b119b9d74300fc8013af5952ae /gnu/packages/python.scm | |
parent | 4ff9e8685f2b5180cff3c2f557b60fb71dcec83f (diff) | |
download | guix-841e59083d0481c9efcbe5e3bb4c728ad8cbd044.tar.gz |
gnu: Add python-jsonpatch.
* gnu/packages/python.scm (python-jsonpatch, python2-jsonpatch, python-jsonpatch-0.4, python2-jsonpatch-0.4): New variables.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r-- | gnu/packages/python.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6db8a02430..1f138a8efd 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -15238,6 +15238,49 @@ by path in a JSON document (see RFC 6901).") (define-public python2-jsonpointer (package-with-python2 python-jsonpointer)) +(define-public python-jsonpatch + (package + (name "python-jsonpatch") + (version "1.16") + (source + (origin + (method url-fetch) + ;; pypi version lacks tests.js + (uri (string-append "https://github.com/stefankoegl/python-json-patch/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "085ykisl8v7mv9h7hvhdy3l2fjzs4214gx32r5k6nx4f76hbv6y5")))) + (build-system python-build-system) + (native-inputs + `(("python-jsonpointer" ,python-jsonpointer))) + (home-page "https://github.com/stefankoegl/python-json-patch") + (synopsis "Applying JSON Patches in Python 2.6+ and 3.x") + (description "@code{jsonpatch} is a library and program that allows +applying JSON Patches according to RFC 6902.") + (license license:bsd-3))) + +(define-public python2-jsonpatch + (package-with-python2 python-jsonpatch)) + +(define-public python-jsonpatch-0.4 + (package (inherit python-jsonpatch) + (name "python-jsonpatch") + (version "0.4") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/stefankoegl/python-json-patch/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0j0cd9z9zyp8kppp464jxrfgrnbgkzl1yi10i5gsv8yz6d95929d")))))) + +(define-public python2-jsonpatch-0.4 + (package-with-python2 python-jsonpatch-0.4)) + (define-public python-rfc3987 (package (name "python-rfc3987") |