summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorRutger Helling <rhelling@mykolab.com>2017-06-22 22:33:28 +0200
committerLudovic Courtès <ludo@gnu.org>2017-06-23 14:16:44 +0200
commit7efd98be87a91f6d1fba20eb119e13d6390b569d (patch)
tree7dec1f503e81e1496907670d1641c8ae93b8a34b /gnu/packages/python.scm
parentf817b4d9039e9a8d4ac0b4034f79a60f530296de (diff)
gnu: Add python-rencode.
* gnu/packages/python.scm (python-rencode): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d9e004ecbe3..6150a8798f5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15472,3 +15472,31 @@ functionality like full case-folding for case-insensitive matches in Unicode.")
15472related APIs. The binding is created using the standard @code{ctypes} 15472related APIs. The binding is created using the standard @code{ctypes}
15473library.") 15473library.")
15474 (license license:bsd-3))) 15474 (license license:bsd-3)))
15475
15476(define-public python-rencode
15477 (package
15478 (name "python-rencode")
15479 (version "1.0.3")
15480 (source
15481 (origin
15482 (method url-fetch)
15483 (uri (pypi-uri "rencode" version))
15484 (sha256
15485 (base32
15486 "08if5yax1xn5yfp8p3765ccjmfcv9di7i4m5jckgnwvdsgznwkbj"))))
15487 (build-system python-build-system)
15488 (native-inputs `(("pkg-config" ,pkg-config)
15489 ("python-cython", python-cython)))
15490 (home-page "https://github.com/aresch/rencode")
15491 (synopsis "Serialization of heterogeneous data structures")
15492 (description
15493 "The @code{rencode} module is a data structure serialization library,
15494similar to @code{bencode} from the BitTorrent project. For complex,
15495heterogeneous data structures with many small elements, r-encoding stake up
15496significantly less space than b-encodings. This version of rencode is a
15497complete rewrite in Cython to attempt to increase the performance over the
15498pure Python module.")
15499 (license license:bsd-3)))
15500
15501(define-public python2-rencode
15502 (package-with-python2 python-rencode))