From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzBsU-0008Bf-Dh for guix-patches@gnu.org; Mon, 02 Oct 2017 21:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzBsR-0003DP-6p for guix-patches@gnu.org; Mon, 02 Oct 2017 21:20:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzBsR-0003D7-45 for guix-patches@gnu.org; Mon, 02 Oct 2017 21:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzBsQ-0004CX-L9 for guix-patches@gnu.org; Mon, 02 Oct 2017 21:20:02 -0400 Subject: [bug#28676] [PATCH 2/4] gnu: Add python-linecache2. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzBro-00086C-IC for guix-patches@gnu.org; Mon, 02 Oct 2017 21:19:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzBrn-0002d5-FF for guix-patches@gnu.org; Mon, 02 Oct 2017 21:19:24 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:50615) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzBrn-0002cQ-8a for guix-patches@gnu.org; Mon, 02 Oct 2017 21:19:23 -0400 Received: by mail-wm0-x232.google.com with SMTP id u138so13587855wmu.5 for ; Mon, 02 Oct 2017 18:19:23 -0700 (PDT) From: Cyril Roelandt Date: Tue, 3 Oct 2017 03:19:11 +0200 Message-Id: <20171003011913.19229-3-tipecaml@gmail.com> In-Reply-To: <20171003011913.19229-1-tipecaml@gmail.com> References: <20171003011913.19229-1-tipecaml@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28676@debbugs.gnu.org * gnu/packages/python.scm (python-linecache2, python2-linecache2): New variables. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 904b1e892..f6e395bfc 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16436,3 +16436,32 @@ their files and supports any packaging format (including wheels).") (define-public python2-twine (package-with-python2 python-twine)) + +(define-public python-linecache2 + (package + (name "python-linecache2") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "linecache2" version)) + (sha256 + (base32 + "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb")))) + (build-system python-build-system) + (arguments + `(;; The tests depend on unittest2, and our version is a bit too old. + #:tests? #f)) + (native-inputs + `(("python-pbr" ,python-pbr))) + (home-page + "https://github.com/testing-cabal/linecache2") + (synopsis "Backports of the linecache module") + (description + "The linecache module allows one to get any line from any file, while +attempting to optimize internally, using a cache, the common case where many +lines are read from a single file.") + (license license:psfl))) + +(define-public python2-linecache2 + (package-with-python2 python-linecache2)) -- 2.14.1