From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: [PATCH] gnu: Add python-xopen. Date: Wed, 14 Dec 2016 23:57:12 +0100 Message-ID: <20161214225712.31168-1-me@tobias.gr> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHIUR-0003gA-PD for guix-devel@gnu.org; Wed, 14 Dec 2016 17:57:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHIUO-0004uc-LZ for guix-devel@gnu.org; Wed, 14 Dec 2016 17:57:35 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:51926) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cHIUO-0004u1-Ep for guix-devel@gnu.org; Wed, 14 Dec 2016 17:57:32 -0500 Received: from mfilter6-d.gandi.net (mfilter6-d.gandi.net [217.70.178.135]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 75C36C5A46 for ; Wed, 14 Dec 2016 23:57:29 +0100 (CET) Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter6-d.gandi.net (mfilter6-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id WWTK8LPVZpqB for ; Wed, 14 Dec 2016 23:57:27 +0100 (CET) Received: from v5.tobias.gr (unknown [91.177.24.2]) (Authenticated sender: me@tobias.gr) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 9177BC5A50 for ; Wed, 14 Dec 2016 23:57:27 +0100 (CET) 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 * gnu/packages/python.scm (python-xopen, python2-xopen): New variables. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 789e199..70c5aed 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11929,3 +11929,29 @@ 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 (string-append "https://github.com/marcelm/xopen/archive/v" + version ".tar.gz")) + (sha256 + (base32 + "1dp0fg56fk5kiz9n1h82b6bf9vf15p4c79bvidlbgvsx3jqqaa39")) + (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)) -- 2.9.3