From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [PATCH 18/18] gnu: Add python-editor. Date: Mon, 15 Feb 2016 15:33:44 -0800 Message-ID: <871t8dsg4n.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/x-patch Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVSeJ-000795-8A for guix-devel@gnu.org; Mon, 15 Feb 2016 18:33:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVSeI-0001S0-7Z for guix-devel@gnu.org; Mon, 15 Feb 2016 18:33:47 -0500 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:60706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVSeI-0001Rw-1N for guix-devel@gnu.org; Mon, 15 Feb 2016 18:33:46 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 5386626676 for ; Mon, 15 Feb 2016 18:33:45 -0500 (EST) Content-Disposition: inline; filename=0018-gnu-Add-python-editor.patch 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org >From e43f2dca602a0e1bc90e8dce1947fcf3d401360f Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 15 Feb 2016 10:29:08 -0800 Subject: [PATCH 18/18] gnu: Add python-editor. * gnu/packages/python.scm (python-editor, python2-editor): New variables. --- gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2cb87bc..0d45e7f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8077,3 +8077,33 @@ the 'transtab' collection by Markus Kuhn.") (inherit (package-with-python2 (strip-python2-variant python-translitcodec))) (inputs `(("python2-setuptools" ,python2-setuptools))))) + +(define-public python-editor + (package + (name "python-editor") + (version "0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-editor" version)) + (sha256 + (base32 + "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page + "https://github.com/fmoo/python-editor") + (synopsis + "Programmatically open an editor, capture the result") + (description + "python-editor is a library that provides the editor module for +programmatically interfacing with your system's $EDITOR.") + (license asl2.0) + (properties `((python2-variant . ,(delay python2-editor)))))) + +(define-public python2-editor + (package + (inherit (package-with-python2 + (strip-python2-variant python-editor))) + (inputs `(("python2-setuptools" ,python2-setuptools))))) -- 2.6.3