From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 2/2] gnu: Add python-lzo. Date: Thu, 2 Feb 2017 15:16:05 +0000 Message-ID: <20170202151605.27876-3-contact.ng0@cryptolab.net> References: <20170202151605.27876-1-contact.ng0@cryptolab.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZJ6A-0000vQ-5F for guix-devel@gnu.org; Thu, 02 Feb 2017 10:14:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZJ69-0007IN-0N for guix-devel@gnu.org; Thu, 02 Feb 2017 10:14:58 -0500 Received: from aibo.runbox.com ([91.220.196.211]:50506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZJ68-0007HV-QY for guix-devel@gnu.org; Thu, 02 Feb 2017 10:14:56 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cZJ67-0004aZ-Lz for guix-devel@gnu.org; Thu, 02 Feb 2017 16:14:55 +0100 In-Reply-To: <20170202151605.27876-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * gnu/packages/compression.scm (python-lzo): New variable. Co-authored-by: Danny Milosavljevic --- gnu/packages/compression.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 64518fb6b..2545c4517 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -365,6 +365,42 @@ 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" "\") +")))))))) + (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