From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH 08/10] gnu: python-ipython: Use 'python2-variant'. Date: Thu, 21 Apr 2016 23:21:59 +1000 Message-ID: <1461244921-7412-9-git-send-email-donttrustben@gmail.com> References: <1461244921-7412-1-git-send-email-donttrustben@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atEZP-0002c7-3n for Guix-devel@gnu.org; Thu, 21 Apr 2016 09:22:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atEZK-0004VU-3E for Guix-devel@gnu.org; Thu, 21 Apr 2016 09:22:59 -0400 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:33384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atEZJ-0004VD-S0 for Guix-devel@gnu.org; Thu, 21 Apr 2016 09:22:54 -0400 Received: by mail-pf0-x242.google.com with SMTP id e190so7154254pfe.0 for ; Thu, 21 Apr 2016 06:22:53 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id m12sm1325947pfi.5.2016.04.21.06.22.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Apr 2016 06:22:51 -0700 (PDT) In-Reply-To: <1461244921-7412-1-git-send-email-donttrustben@gmail.com> 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-ipython)[properties]: New field. (python2-ipython): Use 'strip-python2-variant'. --- gnu/packages/python.scm | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f26592e..ea9f47a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4359,29 +4359,21 @@ without using the configuration machinery.") Powerful interactive shells, a browser-based notebook, support for interactive data visualization, embeddable interpreters and tools for parallel computing.") - (license bsd-3))) + (license bsd-3) + (properties `((python2-variant . ,(delay python2-ipython)))))) (define-public python2-ipython - (let ((ipython (package-with-python2 python-ipython))) + (let ((base (package-with-python2 + (strip-python2-variant python-ipython)))) (package - (inherit ipython) + (inherit base) ;; FIXME: some tests are failing - (arguments - `(#:tests? #f ,@(package-arguments ipython))) - ;; Make sure we use custom python2-NAME packages. ;; FIXME: add pyreadline once available. - (propagated-inputs - `(("python2-terminado" ,python2-terminado) - ,@(alist-delete "python-terminado" - (package-propagated-inputs ipython)))) + (arguments + `(#:tests? #f ,@(package-arguments base))) (inputs - `(("python2-jsonschema" ,python2-jsonschema) - ("python2-mock" ,python2-mock) - ("python2-matplotlib" ,python2-matplotlib) - ("python2-numpy" ,python2-numpy) - ("python2-requests" ,python2-requests) - ,@(fold alist-delete (package-inputs ipython) - '("python-jsonschema" "python-matplotlib" "python-numpy" "python-requests"))))))) + `(("python2-mock" ,python2-mock) + ,@(package-inputs base)))))) (define-public python-isodate (package -- 2.5.0