From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id DUg/IifSzF6VQQAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 08:24:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oM6+HSfSzF5xLwAAbx9fmQ (envelope-from ) for ; Tue, 26 May 2020 08:24:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E039594030E for ; Tue, 26 May 2020 08:24:06 +0000 (UTC) Received: from localhost ([::1]:47966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdUsX-0003AQ-Q1 for larch@yhetil.org; Tue, 26 May 2020 04:24:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdUsU-0003AD-NP for guix-patches@gnu.org; Tue, 26 May 2020 04:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdUsU-0007sw-ES for guix-patches@gnu.org; Tue, 26 May 2020 04:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdUsU-0007Lf-AH for guix-patches@gnu.org; Tue, 26 May 2020 04:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41455] [PATCH 1/2] gnu: Add python-pytest-4 References: <87d06wazez.fsf@alice.lan> In-Reply-To: <87d06wazez.fsf@alice.lan> Resent-From: Edouard Klein Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 May 2020 08:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41455 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41455@debbugs.gnu.org Received: via spool by 41455-submit@debbugs.gnu.org id=B41455.159048144028240 (code B ref 41455); Tue, 26 May 2020 08:24:02 +0000 Received: (at 41455) by debbugs.gnu.org; 26 May 2020 08:24:00 +0000 Received: from localhost ([127.0.0.1]:43985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdUsE-0007LA-7e for submit@debbugs.gnu.org; Tue, 26 May 2020 04:24:00 -0400 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdUsA-0007L0-R6 for 41455@debbugs.gnu.org; Tue, 26 May 2020 04:23:44 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1590481419; cv=none; d=zohomail.com; s=zohoarc; b=RJZuIpcQ6OyKrWtnbTkgo0Apu3vHp3vgDgnLr2MejoiwyqdpxjJE/+j2nxGF+o6xhfJ+Gy0b7uxbBOpCg//FbI4dkmXufnetEVuFpGrA4/lwT7sbjmKWD5Nkzyn7CU2ORd+5QOLyufuCv8jNZQ8m4hU/7W1Qfg+Xw7DRPLv5Vwc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590481419; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=RRxJmTHngoxDIrSY1NfSoJOSutlWIf9sxv6mRtU4oPU=; b=SY68BbkmWuAZrVPGhCzTO5RefTswyrWjXuqhr47DPwW8B1g0pFHVYMuMpSt98N8ESHtQ3X5tXrzaebUOj3uQ0WhpYtJyw0wr5kAfHalJLnz1VFOfxSij3VgO96zot9yDKwBfDcCFv6wQQrs/H6kUK2vHXJVaY4eUcUa+Rd5AyGg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=beaver-labs.com; spf=pass smtp.mailfrom=edk@beaver-labs.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590481419; s=zoho; d=beaver-labs.com; i=edk@beaver-labs.com; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=RRxJmTHngoxDIrSY1NfSoJOSutlWIf9sxv6mRtU4oPU=; b=XfeA6azfKz8iw0QTFehZLD/C7jhvK9PmlUQA/Pv627VJQbHtDqwBMsQ6+7zuUTSZ 888Br7V6SRGj649JexCFxEu2J5PH8U1/CQCXUCL0fnJfVqIO+PdtbZJaRIK27b++vCJ dHmUh1NToKxqU1WEV7v3dCERSkv7CzOV5wy4RuCE= Received: from alice.lan (lfbn-idf1-1-1299-119.w90-79.abo.wanadoo.fr [90.79.23.119]) by mx.zohomail.com with SMTPS id 159048141667512.99050017741456; Tue, 26 May 2020 01:23:36 -0700 (PDT) User-agent: mu4e 1.4.6; emacs 26.3 From: Edouard Klein Message-ID: <87imgjyuir.fsf@alice.lan> Date: Tue, 26 May 2020 10:23:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=beaver-labs.com header.s=zoho header.b=XfeA6azf; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: +Bpv8YXlfFTd * gnu/packages/check.scm (python-pytest-4): New variable. --- gnu/packages/check.scm | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 7d7fd189bc..5d3e44a16d 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -33,6 +33,7 @@ ;;; Copyright =C2=A9 2020 Lars-Dominik Braun ;;; Copyright =C2=A9 2020 Brice Waegeneire ;;; Copyright =C2=A9 2020 Josh Marshall +;;; Copyright =C2=A9 2020 Edouard Klein ;;; ;;; This file is part of GNU Guix. ;;; @@ -66,6 +67,7 @@ #:use-module (gnu packages python) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages version-control) #:use-module (gnu packages time) #:use-module (gnu packages xml) #:use-module (guix utils) @@ -819,6 +821,53 @@ and many external plugins.") (license license:expat) (properties `((python2-variant . ,(delay python2-pytest)))))) =20 +(define-public python-pytest-4 + (package + (name "python-pytest-4") + (version "4.5.0") + (source + (origin + (method git-fetch) + ;; Pypi source tarball does not include tests + (uri (git-reference + (url "https://github.com/pytest-dev/pytest.git") + (commit version))) + (file-name "python-pytest-4") + (sha256 + (base32 + "0igxfasjqabkzlb81vxqr58pfsdwjx4zzd1nc1b48wn6xnkkllhk")))) + (build-system python-build-system) + (propagated-inputs + `(("python-atomicwrites" ,python-atomicwrites) + ("python-attrs" ,python-attrs) + ("python-attrs" ,python-attrs) + ("python-more-itertools" ,python-more-itertools) + ("python-pluggy" ,python-pluggy) + ("python-six" ,python-six) + ("python-py" ,python-py) + ("python-wcwidth" ,python-wcwidth))) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm) + ("git" ,git))) + (arguments `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'git-tag + (lambda _ + ;; setuptools-scm needs to know the version + (invoke "git" "init") + (invoke "git" "add" ".") + (invoke "git" "config" "user.name" "John Doe") + (invoke "git" "config" "user.email" "nobody@example= .com") + (invoke "git" "commit" "-m" "dummy commit") + (invoke "git" "tag" ,version)))))) + (home-page "https://docs.pytest.org/en/latest/") + (synopsis "Python testing library") + (description + "Pytest is a testing tool that provides auto-discovery of test modules +and functions, detailed info on failing assert statements, modular fixture= s, +and many external plugins.") + (license license:expat))) + ;; Pytest 4.x are the last versions that support Python 2. (define-public python2-pytest (package --=20 2.26.2