From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aBGSKwV5NWbwDgEA62LTzQ:P1 (envelope-from ) for ; Sat, 04 May 2024 01:53:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id aBGSKwV5NWbwDgEA62LTzQ (envelope-from ) for ; Sat, 04 May 2024 01:53:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714780421; 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=hOUVXBtbhdPeThf+6pbiiUxrwcfh0A2fzBWQkhyrECE=; b=jQWqODhrLrgOcwRUXRGYO/3iJjWiDOpKwvjkqJi6DlbAZ9oTVAA145cyu2wiGIj6TI5Z+T uOj547pCeCXrm70KGGbq/izbf17gYuqN70/fUkM2jlA+0SM68n1lzKFnYleFZd12OrNZcW 64c+4jsf0yJOZuekVwGMzCa1fugf3yehJauoEhUhtow/YkacKdmFKFCH2GVwHwtftRGa9Y GeG1WRd8tbhMrNLhGFjdKk2IjWtjQFahyVFnfI59fIKopE5RKQykiwnQG5NzXU0OQlHUUc ukv3q5K7O9NXW7Qon9dhc46fRzmjbzs/J1qw0k/8jT84YF5G4eEVXH9NGESUBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714780421; a=rsa-sha256; cv=none; b=LmAYdM/escICRBrh/Tc8riwH1LAOJUWgUq9jMuCMz6TGVeZ5165f+B5qJ75ANtps+n2OIs Ue+a6PUyeEh8OMsxBFp4Y9SYHHDXBm4ve2aJE4CYUv7Kn4+RzJvtDk0Oh2LgQEVdUKQXDx qCzgFPjulND1RjKjY9cQ2D9SfaqQhLO8fzrUqfk955yYfX+abYjqz346KX4iJlCJwJexZz hDpJEDJgY6er0gYzPdT9gyoUgzdwv3dXJnA3ocKZLto1DM2nsicMpnXA2QkCMyIpOYpj0S VL/72cfnzLsqrkpzTWs1F46juSpwbfJoBn8yedTMpAh4IdPdcW307WGOrpo+aw== 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 3D7426B547 for ; Sat, 4 May 2024 01:53:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s31dP-0007IR-2X; Fri, 03 May 2024 18:44:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s31dE-0007BJ-7A for guix-patches@gnu.org; Fri, 03 May 2024 18:44:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s31d9-0003Wh-Qk for guix-patches@gnu.org; Fri, 03 May 2024 18:43:53 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s31dW-00067M-Dk for guix-patches@gnu.org; Fri, 03 May 2024 18:44:14 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70735] [PATCH 023/714] gnu: python-black: Improve package style. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 May 2024 22:44:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70735 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70735@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 70735-submit@debbugs.gnu.org id=B70735.171477623823196 (code B ref 70735); Fri, 03 May 2024 22:44:14 +0000 Received: (at 70735) by debbugs.gnu.org; 3 May 2024 22:43:58 +0000 Received: from localhost ([127.0.0.1]:49369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s31dF-00061z-V9 for submit@debbugs.gnu.org; Fri, 03 May 2024 18:43:58 -0400 Received: from 6.mo576.mail-out.ovh.net ([46.105.50.107]:48363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s31dD-00061M-NF for 70735@debbugs.gnu.org; Fri, 03 May 2024 18:43:56 -0400 Received: from director8.ghost.mail-out.ovh.net (unknown [10.108.9.71]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 4VWQnb6Lwsz1klh for <70735@debbugs.gnu.org>; Fri, 3 May 2024 22:43:31 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-qthxz (unknown [10.111.174.174]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 8DDD31FDB3; Fri, 3 May 2024 22:43:31 +0000 (UTC) Received: from ngraves.fr ([37.59.142.105]) by ghost-submission-6684bf9d7b-qthxz with ESMTPSA id xML5HZNoNWbaBQMA+ieVKg (envelope-from ); Fri, 03 May 2024 22:43:31 +0000 X-OVh-ClientIp: 81.67.146.208 Date: Sat, 4 May 2024 00:18:25 +0200 Message-ID: <20240503224254.28001-23-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240503224254.28001-1-ngraves@ngraves.fr> References: <20240503224254.28001-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7535366602949714658 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvddvuddgudefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepleffjeetueethfefkeffffefvddukeejkefgleduiedthfekvefhiedvhfffgeegnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrddutdehnecuvehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejtdejfeehseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehjeeipdhmohguvgepshhmthhpohhuth 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.39 X-Migadu-Queue-Id: 3D7426B547 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.39 X-TUID: 2mZXdgS+TB+r * gnu/packages/python-xyz.scm (python-black): Improve package style. [build-system]: Move to pyproject-build-system. [arguments]<#:phases>: Improve style of use-absolute-file-names phase. Remove phase check. Change-Id: If2da4b3b0fea4928d1aeb270fbaa4167f20a6ee5 --- gnu/packages/python-xyz.scm | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a8979dfdc0..d4381ae4d2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7965,22 +7965,16 @@ (define-public python-black (sha256 (base32 "0yfahlqc7dsdp1js0cbv706apldnfnlbal9b53cww8n0hs40n0im")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'patch-source-shebangs 'use-absolute-file-names - (lambda* (#:key native-inputs inputs #:allow-other-keys) - (let* ((inpts (or native-inputs inputs)) - (python3 (search-input-file inpts "/bin/python3"))) - (substitute* (find-files "tests" "\\.py$") - (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version) - (string-append "#!" python3 (if (string? minor-version) - minor-version - ""))))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? (invoke "pytest" "-vv"))))))) + (lambda* (#:key inputs #:allow-other-keys) + (substitute* (find-files "tests" "\\.py$") + (("#!/usr/bin/env python3") + (string-append + "#!" (search-input-file inputs "/bin/python3"))))))))) (propagated-inputs (list python-click python-attrs -- 2.41.0