From 2b96177def2703329cc5544efddcc740264d7944 Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 22 Sep 2016 00:08:21 +0000 Subject: [PATCH 2/2] gnu: Add python-lzo. * gnu/packages/compression.scm (python-lzo): New variable. --- gnu/packages/compression.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index b1d5338..30e69c6 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -364,6 +364,37 @@ LZO is written in ANSI C. Both the source code and the compressed data format are designed to be portable across platforms.") (license license:gpl2+))) +(define-public python-lzo + (package + (name "python-lzo") + (version "1.11") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-lzo" version)) + (sha256 + (base32 + "11p3ifg14p086byhhin6azx5svlkg8dzw2b5abixik97xd6fm81q")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-setuppy + (lambda _ + (substitute* "setup.py" + (("^include_dirs.append") + (string-append "include_dirs.append(\"" + (assoc-ref %build-inputs "lzo") "/include" "\")")))))))) + (inputs + `(("lzo" ,lzo))) + (home-page "https://github.com/jd-boyd/python-lzo") + (synopsis "Python bindings for the LZO data compression library") + (description + "Python-LZO provides Python bindings for LZO, i.e. you can access +the LZO library from your Python scripts thereby compressing ordinary +Python strings.") + (license license:gpl2+))) + (define-public lzop (package (name "lzop") -- 2.10.0