From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH v2 05/10] gnu: Add python-future. Date: Sun, 24 Apr 2016 23:06:19 +1000 Message-ID: <1461503184-8841-6-git-send-email-donttrustben@gmail.com> References: <1461244921-7412-1-git-send-email-donttrustben@gmail.com> <1461503184-8841-1-git-send-email-donttrustben@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auJkV-0001xM-HM for Guix-devel@gnu.org; Sun, 24 Apr 2016 09:06:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auJkU-0007BQ-4v for Guix-devel@gnu.org; Sun, 24 Apr 2016 09:06:55 -0400 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:35587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auJkT-0007B5-Uu for Guix-devel@gnu.org; Sun, 24 Apr 2016 09:06:54 -0400 Received: by mail-pf0-x241.google.com with SMTP id r187so15165354pfr.2 for ; Sun, 24 Apr 2016 06:06:53 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id a64sm2229285pfa.6.2016.04.24.06.06.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 24 Apr 2016 06:06:52 -0700 (PDT) In-Reply-To: <1461503184-8841-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-future, python2-future): New variables. --- gnu/packages/python.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4175fad..28eebf1 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8812,13 +8812,43 @@ command line arguments.") (define-public python2-pytest-flakes (let ((base (package-with-python2 - (strip-python2-variant python-pytest-flakes)))) + (strip-python2-variant python-pytest-flakes)))) (package (inherit base) (native-inputs `(,@(package-native-inputs base) ("python2-setuptools" ,python2-setuptools)))))) +(define-public python-future + (package + (name "python-future") + (version "0.15.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "future" version)) + (sha256 + (base32 + "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; Tests connect to the network + (home-page "http://python-future.org") + (synopsis "Single-source support for Python 3 and 2") + (description + "@code{python-future} is the missing compatibility layer between Python 2 and +Python 3. It allows you to use a single, clean Python 3.x-compatible codebase +to support both Python 2 and Python 3 with minimal overhead.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-future)))))) + +(define-public python2-future + (let ((base (package-with-python2 + (strip-python2-variant python-future)))) + (package + (inherit base) + (native-inputs `(("python2-setuptools" ,python2-setuptools)))))) + (define-public python-cysignals (package (name "python-cysignals") -- 2.5.0