From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH 02/10] gnu: Add python-bz2file. Date: Thu, 21 Apr 2016 18:43:57 +0300 Message-ID: <20160421154357.GA21561@debian-netbook> References: <1461244921-7412-1-git-send-email-donttrustben@gmail.com> <1461244921-7412-3-git-send-email-donttrustben@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atGlx-0006cm-IH for Guix-devel@gnu.org; Thu, 21 Apr 2016 11:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atGls-0001oV-Vb for Guix-devel@gnu.org; Thu, 21 Apr 2016 11:44:05 -0400 Received: from flashner.co.il ([178.62.234.194]:58659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atGls-0001oR-L1 for Guix-devel@gnu.org; Thu, 21 Apr 2016 11:44:00 -0400 Content-Disposition: inline In-Reply-To: <1461244921-7412-3-git-send-email-donttrustben@gmail.com> 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: Ben Woodcroft Cc: Guix-devel@gnu.org --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 21, 2016 at 11:21:53PM +1000, Ben Woodcroft wrote: > * gnu/packages/python.scm (python-bz2file, python2-bz2file): New > variables. > --- > gnu/packages/python.scm | 40 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) >=20 > diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm > index ecd16c5..9c3a9fd 100644 > --- a/gnu/packages/python.scm > +++ b/gnu/packages/python.scm > @@ -8677,6 +8677,46 @@ LDFLAGS and parse the output to build extensions w= ith setup.py.") > (define-public python2-pkgconfig > (package-with-python2 python-pkgconfig)) > =20 > +(define-public python-bz2file > + (package > + (name "python-bz2file") > + (version "0.98") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://pypi.python.org/packages/source/b/bz2file/bz2file-" > + version > + ".tar.gz")) (uri (pypi-uri "bz2file" version)) > + (sha256 > + (base32 > + "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4")))) > + (build-system python-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + ;; python setup.py test does not work as of 0.98 > + ;; but there is only the one test file > + (replace 'check > + (lambda _ (zero? (system* "python" "test_bz2file.py"))))))) > + (home-page "https://github.com/nvawda/bz2file") > + (synopsis "Read and write bzip2-compressed files") > + (description > + "Bz2file is a Python library for reading and writing bzip2-compress= ed > +files. It contains a drop-in replacement for the file interface in the > +standard library's bz2 module, including features from the latest develo= pment > +version of CPython that are not available in older releases.") > + (license asl2.0) > + (properties `((python2-variant . ,(delay python2-bz2file)))))) > + > +(define-public python2-bz2file > + (let ((base (package-with-python2 > + (strip-python2-variant python-bz2file)))) > + (package > + (inherit base) > + (native-inputs > + `(("python2-setuptools" ,python2-setuptools)))))) > + > (define-public python-cysignals > (package > (name "python-cysignals") > --=20 > 2.5.0 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXGPU5AAoJEPTB05F+rO6TEqYP/RqxyZSRsnGrCTOZ746JLcnl JMSxXPqKFe0z3wNZH84zL/wiGCS7346DYPLRYl5gtDEBqsQy71iW7rcNwZVtK701 lXOTiwAE+BfcfHfKfXCzlDkQGzl0xdHLPDnTZZ3+zohjRJAjOzwTfZ6wTTYJhMXf lyGAkZEfpzj6DultQxhJA571SG4QYTm2LG4Z+wijmgM+6fPGry8dEK5j2LY3W9pU +tgdZEa6poeai7PdxxQGOnM0P5jemYqPiJhrQq8OpRai5bpV1FxIwDAbFL3Obtfa ovT/d9m4GTXveW8wMJkkzFgR+exiU7Sv6sVlPZcDjt2qjf0ZxvRV/FSNspNqEtp2 7eVoU5xzjJvtw4uKLV5xyAL/UohNsC5F0l3tZZBGSQccS9eqEAEVW4kgjyOWPoQH UKQAJm7K+GthiXv6ZI75eeR7J1tFHM4XvY/ierldE+7PXqCm4GJOQ0PYt/SsUUoG thAek14QFP11AHAhQNxa2am1rpcsMIpGIoQeT4LSxQQR8HguPxeBf2S/IQjCLro+ scJ6roOO9w09oWdutMrQvbpD45Nlj9nXgSZ1rJcp5fUq380VE0t+Y6NreNo9iXS8 xU+8tQWv5DuxcfQzfU1TtUvBnzn1aQbW8E2cBVeSG9/gs5rA6zFnQnjpdrxVsbS1 JSpna0+pNZFm7c2P4swh =qMPE -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--