From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] python-lzo + python-lz4 Date: Sat, 24 Sep 2016 15:27:45 +0000 Message-ID: <8760pl5nda.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnos5-0002wL-Vs for guix-devel@gnu.org; Sat, 24 Sep 2016 11:28:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnos1-0005re-G3 for guix-devel@gnu.org; Sat, 24 Sep 2016 11:28:09 -0400 Received: from aibo.runbox.com ([91.220.196.211]:38466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnos1-0005nC-4D for guix-devel@gnu.org; Sat, 24 Sep 2016 11:28:05 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bnorx-0005E1-Mz for guix-devel@gnu.org; Sat, 24 Sep 2016 17:28:01 +0200 Received: from x5d83e522.dyn.telefonica.de ([93.131.229.34] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1bnorj-0008Nu-22 for guix-devel@gnu.org; Sat, 24 Sep 2016 17:27:47 +0200 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 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain lz4: builds. lzo: I don't know how to make it find lzo headers, help requested. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-python-lz4.patch Content-Transfer-Encoding: quoted-printable From=202fb504abdf78e63de0d538fd2cebef43b9fc38f6 Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 21 Sep 2016 23:21:39 +0000 Subject: [PATCH 1/2] gnu: Add python-lz4. * gnu/packages/compression.scm (python-lz4): New variable. =2D-- gnu/packages/compression.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 6504641..b1d5338 100644 =2D-- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -14,6 +14,7 @@ ;;; Copyright =C2=A9 2016 David Craven ;;; Copyright =C2=A9 2016 Kei Kebreau ;;; Copyright =C2=A9 2016 Marius Bakke +;;; Copyright =C2=A9 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) + #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages assembly) #:use-module (gnu packages autotools) @@ -45,6 +47,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages valgrind) #:use-module ((srfi srfi-1) #:select (last))) =20 @@ -632,6 +635,34 @@ time for compression ratio.") ;; line interface programs (lz4, fullbench, fuzzer, datagen) are GPL2+. (license (list license:bsd-2 license:gpl2+)))) =20 +(define-public python-lz4 + (package + (name "python-lz4") + (version "0.8.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "lz4" version)) + (sha256 + (base32 + "1irad4sq4hdr30fr53smvv3zzk4rddcf9b4jx19w8s9xsxhr1x3b")))) + (build-system python-build-system) + (inputs + `(("python-nose" ,python-nose))) + (home-page "https://github.com/python-lz4/python-lz4") + (synopsis "LZ4 Bindings for Python") + (description + "This package provides python bindings for the lz4 compression library +by Yann Collet. The project contains bindings for the LZ4 block format and +the LZ4 frame format.") + (license license:bsd-3))) + +(define-public python2-lz4 + (package + (inherit (package-with-python2 + (strip-python2-variant python-lz4))) + (native-inputs `(("python2-setuptools" ,python2-setuptools))))) + (define-public squashfs-tools (package (name "squashfs-tools") =2D-=20 2.10.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-Add-python-lzo.patch Content-Transfer-Encoding: quoted-printable From=202b96177def2703329cc5544efddcc740264d7944 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. =2D-- 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 =2D-- 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 th= e compressed data format are designed to be portable across platforms.") (license license:gpl2+))) =20 +(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") =2D-=20 2.10.0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 ng0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX5ptyAAoJEAKilhUMIBgjbYQP/3ikqmtNUKdWhMfS0dtmxMSY Q6FwajxcPQbyL7Pb5CHJRU4Aqeap4LjzyCPHYkyv7Q6iJvLgg7GRRX7Nj1MYD+k6 ljc/hVEZQKZhEoLtCGLYLip0DesMpTCUa5oFIKFv3WcPphlwqJlZg6PmYMroL6Sh W8Oy8ZM9VOzwV/Dw7b+ykm6hOjezWyl9fVb/x6OCKhCWs7auRjzbVlFdarANpccL CMr3yPBUDXmGF6dHriElRXudf1uZB4XxLyPnlI6Lx0qzPTXqG7gLhdCfZQbpE7+9 CRx/Ahgpqcn8ebRcJ+c/RPZgO23f7Ucc0jc0G6Qvvu6+TR0ceisFE8ZTrTjdHBmv P/TtB8yoc3nvEo4k5cnSVFfNRLGf4GyU8Out34JhoDpb1MzounFPzwlZ9B8zxfFB +D5xRuu9KlkWPOELtuZ6RKQxuq804m4A9/EnaQniOt92Grs7kajeD2gb9r9Xc7Tk Ds/W5tGRQJ9VCiAkzk02p6mz/Q2vC0wXdNe3EmHQxdNe8tjKL8q/+i23oV7v4rch TzK2DnaRGisDFaeJ5AkBDtDN0O5o3uRAB35+Lhji+nXC7dggJVeKJLtwvGFfJ6Tm tpkzJ4XwToIQUj5VZDMWIxlgxDdzlGjFH2NTAsC6b5KT30ONuka0X7lxEc/zaa8i RcgxCALBbU22JuN3wMF8 =sCZd -----END PGP SIGNATURE----- --==-=-=--