From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WDqkCmfj8mJgKQAAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 00:44:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mEDDCWfj8mJXTQEAG6o9tA (envelope-from ) for ; Wed, 10 Aug 2022 00:44:55 +0200 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 BAE9C2802E for ; Wed, 10 Aug 2022 00:44:54 +0200 (CEST) Received: from localhost ([::1]:41752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLXy1-0004Ep-Ho for larch@yhetil.org; Tue, 09 Aug 2022 18:44:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLXxF-0002pP-JB for guix-patches@gnu.org; Tue, 09 Aug 2022 18:44:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLXxF-0004Gi-AD for guix-patches@gnu.org; Tue, 09 Aug 2022 18:44:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLXxE-0005AC-6Z for guix-patches@gnu.org; Tue, 09 Aug 2022 18:44:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57094] [PATCH 7/9] gnu: Add python-nox. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Aug 2022 22:44:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57094 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 57094@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 57094-submit@debbugs.gnu.org id=B57094.166008504019770 (code B ref 57094); Tue, 09 Aug 2022 22:44:04 +0000 Received: (at 57094) by debbugs.gnu.org; 9 Aug 2022 22:44:00 +0000 Received: from localhost ([127.0.0.1]:45455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLXxA-00058n-Bq for submit@debbugs.gnu.org; Tue, 09 Aug 2022 18:44:00 -0400 Received: from 1.mo560.mail-out.ovh.net ([46.105.63.121]:51511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLXx6-00058O-Cz for 57094@debbugs.gnu.org; Tue, 09 Aug 2022 18:43:57 -0400 Received: from player732.ha.ovh.net (unknown [10.109.156.77]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id AD6CD24435 for <57094@debbugs.gnu.org>; Tue, 9 Aug 2022 22:43:54 +0000 (UTC) Received: from ngraves.fr (met42-h01-213-44-161-47.dsl.sta.abo.bbox.fr [213.44.161.47]) (Authenticated sender: ngraves@ngraves.fr) by player732.ha.ovh.net (Postfix) with ESMTPSA id F35021F8FBB13; Tue, 9 Aug 2022 22:43:52 +0000 (UTC) X-OVh-ClientIp: 213.44.161.47 Date: Wed, 10 Aug 2022 00:43:31 +0200 Message-Id: <20220809224333.28437-7-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220809224333.28437-1-ngraves@ngraves.fr> References: <20220809224333.28437-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 16368895799641563874 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeguddgudegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepudevffejudehgeejveefhfdtudeuheeggeekuedvveelgffgffehhedvueelleegnecuffhomhgrihhnpehthhgvrgdrtghouggvshenucfkpheptddrtddrtddrtddpvddufedrgeegrdduiedurdegjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeefvddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeehjedtleegseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660085094; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=SXSHnWdI3tZW39Cm+JLlc1Kb11psh8OWEDZbsDcHOe4=; b=hvyGE/8Eb56rSWy6VczFkDLR3UItWaWXtGpJgILPB9V5j4cpjxETjxWjuuutpx+HS+44Xi wYrmAciqnbJOdxcbjVjREJZqqc0NPYcI5TXvVFkjuoJzqMuRLANJTvXc/h9aLE3ZeG3yxR 23jqcbk2EO3Mc+qy6ScHAvzFi542VXS+jc7jEgDvDp2qvBFzmVuC+fVOyo0On6e/uM3Y28 693Add6G7+mbncIe32nB6JHCR3/Rqp4SgmT7ZyZXA5iKtADM16gd3dmwmHmu4lawHP0Sle LoI4IGjp+kw8hGElEi9xiAXIpfSfqZ2odXO7euDIhET4s+y+f21SJaVHbW9vpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660085094; a=rsa-sha256; cv=none; b=QpSCFVIFiN1RuIKOMcayX/FNyOqXkGp3F6Y7YmefSP1jyUNxQ9jlzUvcGF8q3GX5GqzjNC VIuYyOZ2oqEMp/IGGGlbecClpNd03m40ptiQwU14Ls1IvGtzlMJ0t6bYzHEH8Lk/QwGlbA aNmjQpXL809COritOGrKQar20aVMgJI8w+c5uSy8XIAt/06StXHYigHvV2yu6aH+XQPzsj UXo+OcdG+hLXJta9o8+eidusyP12Wx+i1o88fYBLeNU0zPafyqIdu3lI/ClCGinurnraxl 6n9oYAUJYBowavedXouH8t550+mDmllHMNnE1Vt9tR27vMSuC/zKNEaLbo2x8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.39 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BAE9C2802E X-Spam-Score: -4.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1ELqVhHM2Bwo * gnu/packages/python-check.scm (python-nox): New variable. --- gnu/packages/python-check.scm | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index af0e5be28b..20ab26facf 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -107,6 +107,57 @@ (define-public python-beartype written in pure Python.") (license license:expat))) +(define-public python-nox + (package + (name "python-nox") + (version "2022.1.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "nox" version)) + (sha256 + (base32 + "0zkxv7y5952kizri6bnac3gq1kah3b7d1f3lmcpxzfdhxf626xdk")))) + (build-system python-build-system) + (propagated-inputs (list python-argcomplete + python-colorlog + python-importlib-metadata + python-packaging + python-py + python-typing-extensions + python-virtualenv)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; XXX: PEP 517 manual build/install procedures copied from + ;; python-isort. + (replace 'build + (lambda _ + ;; ZIP does not support timestamps before 1980. + (setenv "SOURCE_DATE_EPOCH" "315532800") + (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "tests"))))))) + (native-inputs + (list python-pypa-build + python-pytest + python-jinja2 + python-tox)) + (home-page "https://nox.thea.codes") + (synopsis "Flexible python test automation") + (description + "This package provides @code{nox}, a command-line tool that automates +testing in multiple Python environments, similar to @code{tox}. Unlike +@code{tox}, @code{nox} uses a standard Python file for configuration.") + (license license:asl2.0))) + (define-public python-pytest-click (package (name "python-pytest-click") -- 2.37.1