From: contact.ng0@cryptolab.net
To: guix-devel@gnu.org
Cc: ng0 <ngillmann@runbox.com>
Subject: [PATCH 2/2] gnu: Add python-lzo.
Date: Fri, 3 Feb 2017 16:56:25 +0000 [thread overview]
Message-ID: <20170203165625.2589-3-contact.ng0@cryptolab.net> (raw)
In-Reply-To: <20170203165625.2589-1-contact.ng0@cryptolab.net>
From: ng0 <ngillmann@runbox.com>
* gnu/packages/compression.scm (python-lzo): New variable.
Co-authored-by: Danny Milosavljevic <dannym@scratchpost.org>
---
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
next prev parent reply other threads:[~2017-02-03 16:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-02 15:16 LZ4 + LZO python bindings contact.ng0
2017-02-02 15:16 ` [PATCH 1/2] gnu: Add python-lz4 contact.ng0
2017-02-02 20:32 ` Hartmut Goebel
2017-02-02 15:16 ` [PATCH 2/2] gnu: Add python-lzo contact.ng0
2017-02-02 20:32 ` Hartmut Goebel
2017-02-03 13:13 ` ng0
2017-02-03 15:56 ` Hartmut Goebel
2017-02-03 16:36 ` ng0
2017-02-04 13:42 ` substitute/regex (was [PATCH 2/2] gnu: Add python-lzo.) Hartmut Goebel
2017-02-03 16:56 ` python-{lzo,lz4} ,v3 contact.ng0
2017-02-03 16:56 ` [PATCH 1/2] gnu: Add python-lz4 contact.ng0
2017-02-03 16:56 ` contact.ng0 [this message]
2017-02-04 13:46 ` python-{lzo,lz4} ,v3 Hartmut Goebel
2017-02-05 9:31 ` [PATCH 2/2] gnu: Add python-lzo Maxim Cournoyer
2017-02-05 11:37 ` ng0
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170203165625.2589-3-contact.ng0@cryptolab.net \
--to=contact.ng0@cryptolab.net \
--cc=guix-devel@gnu.org \
--cc=ngillmann@runbox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).