From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2] gnu: Add python-jedi. Date: Sat, 9 Jul 2016 14:48:32 +0200 Message-ID: <20160709144832.7bd38995@scratchpost.org> References: <20160709134252.45490258@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLrgW-0003o0-MM for guix-devel@gnu.org; Sat, 09 Jul 2016 08:48:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLrgT-0004Ji-HD for guix-devel@gnu.org; Sat, 09 Jul 2016 08:48:40 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:50815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLrgT-0004JZ-Ag for guix-devel@gnu.org; Sat, 09 Jul 2016 08:48:37 -0400 Received: from localhost (77.118.25.35.wireless.dyn.drei.com [77.118.25.35]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 5909E1CA02F9 for ; Sat, 9 Jul 2016 14:48:35 +0200 (CEST) In-Reply-To: <20160709134252.45490258@scratchpost.org> 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-jedi, python2-jedi): New variables. Signed-off-by: Danny Milosavljevic --- gnu/packages/python.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ccbed0f..ffd4d56 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -45,7 +45,7 @@ #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style gpl2 gpl2+ gpl3 gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+ isc mpl2.0 psfl public-domain repoze unlicense x11-style - zpl2.1)) + zpl2.1 expat)) #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages algebra) @@ -9724,3 +9724,35 @@ characters, mouse support, and auto suggestions.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-jedi + (package + (name "python-jedi") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/" + "3a/37/629080b92b87bc65e3b1b4f5d539e22aa5dc45637eab0dd4b0cd8cf236c2/jedi-" + version + ".tar.gz")) + (sha256 + (base32 + "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v")))) + (build-system python-build-system) + (home-page "https://github.com/davidhalter/jedi") + (synopsis + "Autocompletion for Python that can be used for text editors") + (description + "Jedi is an autocompletion tool for Python that can be used for text editors.") + (license expat) + (properties `((python2-variant . ,(delay python2-jedi)))))) + +(define-public python2-jedi + (let ((base (package-with-python2 (strip-python2-variant python-jedi)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base))))))