From 61e2259cdc6167e4747c32f07188917dd0d94413 Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Thu, 22 Jun 2017 22:33:28 +0200 Subject: [PATCH] gnu: python: Add python-rencode. * gnu/packages/python.scm (python-rencode): New variable. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 27ae2093c..fa5ff0cfc 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -15435,3 +15435,30 @@ functionality like full case-folding for case-insensitive matches in Unicode.") and related APIs. The binding is created using the standard ctypes library, and is provided under an extremely liberal BSD-style Open-Source license.") (license license:bsd-3))) + +(define-public python-rencode + (package + (name "python-rencode") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rencode" version)) + (sha256 + (base32 + "08if5yax1xn5yfp8p3765ccjmfcv9di7i4m5jckgnwvdsgznwkbj")))) + (build-system python-build-system) + (native-inputs `(("pkg-config" ,pkg-config) + ("python-cython", python-cython))) + (home-page "https://github.com/aresch/rencode") + (synopsis "For complex, heterogeneous data structures with many small elements") + (description + "The rencode module is similar to bencode from the BitTorrent project. +For complex, heterogeneous data structures with many small elements, r-encoding +stake up significantly less space than b-encodings. This version of rencode is a +complete rewrite in Cython to attempt to increase the performance over the pure +Python module written by Petru Paler, Connelly Barnes et al.") + (license license:bsd-3))) + +(define-public python2-rencode + (package-with-python2 python-rencode)) -- 2.13.1