3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: Add python-xopen.

* gnu/packages/python.scm (python-xopen, python2-xopen): New variables.
This commit is contained in:
Tobias Geerinckx-Rice 2016-12-14 23:25:05 +01:00
parent 565775399e
commit 361a2fcf8d
No known key found for this signature in database
GPG key ID: 91CCDB9B48541B99

View file

@ -11927,3 +11927,28 @@ network.")
(define-public python2-argcomplete
(package-with-python2 python-argcomplete))
(define-public python-xopen
(package
(name "python-xopen")
(version "0.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "xopen" version))
(sha256
(base32
"1wx6mylzcsyhjl19ycb83qq6iqpmr927lz62njfsar6ldsj0qcni"))
(file-name (string-append name "-" version ".tar.gz"))))
(build-system python-build-system)
(home-page "https://github.com/marcelm/xopen/")
(synopsis "Open compressed files transparently")
(description "This module provides an @code{xopen} function that works like
Python's built-in @code{open} function, but can also deal with compressed files.
Supported compression formats are gzip, bzip2 and, xz, and are automatically
recognized by their file extensions. The focus is on being as efficient as
possible on all supported Python versions.")
(license license:expat)))
(define-public python2-xopen
(package-with-python2 python-xopen))