Re: [PATCH 02/10] gnu: Add python-bz2file.
Hi Hartmut, Thanks for your comments. On 22/04/16 04:24, Hartmut Goebel wrote: Am 21.04.2016 um 15:21 schrieb Ben Woodcroft: +(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"))) I wonder if this is actually working. The python-3 package does not include "python" (except if this was changed the last days). As I understand, python-wrapper, which provides python as a symlink to python3, as a native input. And, it works. +(description + "Bz2file is a Python library for reading and writing bzip2-compressed +files. It contains a drop-in replacement for the file interface in the I do not understand "replacement for the file interface". If this like the "zipfile" module? Better now? (description "Bz2file is a Python library for reading and writing bzip2-compressed files. It contains a drop-in replacement for the I/O interface in the standard library's @code{bz2} module, including features from the latest development version of CPython that are not available in older releases.") ta, ben
Re: [PATCH 02/10] gnu: Add python-bz2file.
Am 21.04.2016 um 15:21 schrieb Ben Woodcroft: > +(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"))) I wonder if this is actually working. The python-3 package does not include "python" (except if this was changed the last days). > +(description > + "Bz2file is a Python library for reading and writing bzip2-compressed > +files. It contains a drop-in replacement for the file interface in the I do not understand "replacement for the file interface". If this like the "zipfile" module? -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer Information Security Management, Security Governance, Secure Software Development Goebel Consult, Landshut http://www.goebel-consult.de Blog: http://www.goebel-consult.de/blog/feiertagsarbeit-bei-teletrust Kolumne: http://www.cissp-gefluester.de/2012-09-steht-ein-manta-fahrer-vor-der-uni smime.p7s Description: S/MIME Cryptographic Signature
Re: [PATCH 02/10] gnu: Add python-bz2file.
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(+) > > 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 with > setup.py.") > (define-public python2-pkgconfig >(package-with-python2 python-pkgconfig)) > > +(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-compressed > +files. It contains a drop-in replacement for the file interface in the > +standard library's bz2 module, including features from the latest development > +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") > -- > 2.5.0 > -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted signature.asc Description: PGP signature