From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH v2 01/10] gnu: Add python2-pytest-cache. Date: Sun, 24 Apr 2016 23:06:15 +1000 Message-ID: <1461503184-8841-2-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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auJkK-0001Rs-0l for Guix-devel@gnu.org; Sun, 24 Apr 2016 09:06:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auJkI-0006xx-Ty for Guix-devel@gnu.org; Sun, 24 Apr 2016 09:06:43 -0400 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:36512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auJkI-0006xs-Mj for Guix-devel@gnu.org; Sun, 24 Apr 2016 09:06:42 -0400 Received: by mail-pf0-x241.google.com with SMTP id p185so14751781pfb.3 for ; Sun, 24 Apr 2016 06:06:42 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id a64sm2229285pfa.6.2016.04.24.06.06.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 24 Apr 2016 06:06:40 -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-pytest-cache)[properties]: New field. (python2-pytest-cache): New variable. --- gnu/packages/python.scm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0379352..ecd16c5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12,7 +12,7 @@ ;;; Copyright © 2015 Eric Dvorsak ;;; Copyright © 2015, 2016 David Thompson ;;; Copyright © 2015, 2016 Leo Famulari -;;; Copyright © 2015 Ben Woodcroft +;;; Copyright © 2015, 2016 Ben Woodcroft ;;; Copyright © 2015, 2016 Erik Edrosa ;;; Copyright © 2015, 2016 Efraim Flashner ;;; Copyright © 2015 Kyle Meyer @@ -6965,7 +6965,17 @@ minimal and fast API targetting the following uses: (description "The pytest-cache plugin provides tools to rerun failures from the last py.test invocation.") (home-page "https://bitbucket.org/hpk42/pytest-cache/") - (license license:expat))) + (license license:expat) + (properties `((python2-variant . ,(delay python2-pytest-cache)))))) + +(define-public python2-pytest-cache + (let ((base (package-with-python2 + (strip-python2-variant python-pytest-cache)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) (define-public python-pytest-localserver (package -- 2.5.0