[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] gnu: Add python-lzo.
From: |
contact . ng0 |
Subject: |
[PATCH 2/2] gnu: Add python-lzo. |
Date: |
Fri, 3 Feb 2017 16:56:25 +0000 |
From: ng0 <address@hidden>
* gnu/packages/compression.scm (python-lzo): New variable.
Co-authored-by: Danny Milosavljevic <address@hidden>
---
gnu/packages/compression.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 64518fb6b..3c38782df 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -365,6 +365,44 @@ 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
+ `(#:test-target "check"
+ #: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/lzo"
+ "')")))
+ #t)))))
+ (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 python2-lzo
+ (package-with-python2 python-lzo))
+
(define-public lzop
(package
(name "lzop")
--
2.11.0
- LZ4 + LZO python bindings, contact . ng0, 2017/02/02
- [PATCH 1/2] gnu: Add python-lz4., contact . ng0, 2017/02/02
- [PATCH 2/2] gnu: Add python-lzo., contact . ng0, 2017/02/02
- Re: [PATCH 2/2] gnu: Add python-lzo., Hartmut Goebel, 2017/02/02
- Re: [PATCH 2/2] gnu: Add python-lzo., ng0, 2017/02/03
- Re: [PATCH 2/2] gnu: Add python-lzo., Hartmut Goebel, 2017/02/03
- Re: [PATCH 2/2] gnu: Add python-lzo., ng0, 2017/02/03
- substitute/regex (was [PATCH 2/2] gnu: Add python-lzo.), Hartmut Goebel, 2017/02/04
- python-{lzo,lz4} ,v3, contact . ng0, 2017/02/03
- [PATCH 2/2] gnu: Add python-lzo.,
contact . ng0 <=
- [PATCH 1/2] gnu: Add python-lz4., contact . ng0, 2017/02/03
- Re: python-{lzo,lz4} ,v3, Hartmut Goebel, 2017/02/04
- Re: [PATCH 2/2] gnu: Add python-lzo., Maxim Cournoyer, 2017/02/05