From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KHy9IPteS2SDKAAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 07:51:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eOGjIPteS2THbAEA9RJhRA (envelope-from ) for ; Fri, 28 Apr 2023 07:51: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 E52453377F for ; Fri, 28 Apr 2023 07:51:54 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b="V/DxmoX9"; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682661115; 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-type:content-type: 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:dkim-signature; bh=O7Ap4KWIgIHQCHcxKQEP54ib3cEYeUC58jG4zfz/X+M=; b=WkNayR6ZXyfzUfOuFeHifq/ZDCT5K0cOm2n328e7U3n2tkLhBWERuaYHr6Jvn/JLebIdXE 9ODaBpnelfggI/OWgIwh60elIwUm8ybDyF0nogKkPZqZI5jHlui3auMiFHRmZX3XEzK4OX BikH/C7pfpG5vGf7fQ9ug7vvZsJtqPfftB3B2JIdF/K9ZRzyfFy2DBhLNwXfs5PQoSBA5R K6fCX6gdKA6BTXPePcfwbkYU4q6iJxSN1B8QGAA4757eaHxLcf7mkfkQLq1HnlmLvgCFEu NAm7Hbw8nF+Gt6IvQKBRXnYZwbm7Wg60rWJ+Wmj+40/0n0Q6n693YcQYz8wg5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b="V/DxmoX9"; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682661115; a=rsa-sha256; cv=none; b=pTjpmiLwhjR0PW9E8jQTwPdvLdTzrP46s83ntup1kIFR0k2IVdat8crmpg2icNE/fkcthS ReajhP9Oc5mTVNyg59OtKzWg0KsTIEIY98MfR6uJESeMfK1YWyLmkpsHvSO/GPedyV9Szq 0BLTi9THzZEsd6gS+KQKyhu4IlwHb2HSeAEJ+i653jN4rykc54SZ8Xvj7ZFTqYPvj8aecu 3ExyK6KYT2QXhvIJKqo8fqEVno+cUXOOZwAxHB3Cxi2Z9dbUwsdhAaGnqAy0loBXgjaLMa znM3FtBVF0EPHg5TkVtfNptTLnri1xpjnLCmtAxetC6QiS0TO+goMcn+0AWDWQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psH0k-0005YI-JX; Fri, 28 Apr 2023 01:51:14 -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 1psH0Z-0005WK-FH for guix-patches@gnu.org; Fri, 28 Apr 2023 01:51:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psH0Z-0003AB-5f for guix-patches@gnu.org; Fri, 28 Apr 2023 01:51:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psH0Z-0006Yo-1R for guix-patches@gnu.org; Fri, 28 Apr 2023 01:51:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63139] [PATCH python 02/20] gnu: Add python-pyproject-hooks. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Apr 2023 05:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63139 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63139@debbugs.gnu.org Cc: John Kehayias Received: via spool by 63139-submit@debbugs.gnu.org id=B63139.168266102024906 (code B ref 63139); Fri, 28 Apr 2023 05:51:02 +0000 Received: (at 63139) by debbugs.gnu.org; 28 Apr 2023 05:50:20 +0000 Received: from localhost ([127.0.0.1]:60256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psGzr-0006Td-E1 for submit@debbugs.gnu.org; Fri, 28 Apr 2023 01:50:19 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:52109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psGzn-0006TB-MW for 63139@debbugs.gnu.org; Fri, 28 Apr 2023 01:50:17 -0400 Date: Fri, 28 Apr 2023 05:50:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1682661009; x=1682920209; bh=O7Ap4KWIgIHQCHcxKQEP54ib3cEYeUC58jG4zfz/X+M=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=V/DxmoX92APSuqp4WD5ZeY3YhQ7EvhNzr0gZEbPtobVxUdQZzye1SLUHJZMMEgvqb Eis0VuIZNCceIZ7Z/EjydMBH6qHn1SXoRAz/TEGuON3DQlmBPAO58Dr7JgZ+TUJ/DZ wmijGZhIIh1ReAgA9TVJoN9EQOrmWYMcqNAygFERdoO2IHiR52EMfAdEdIi0M20zky VJrYvLykXFcn6dRxwKD3kNuXi7zKDQenWGBEeujdqF7Nw1PCZPfSjkbdBr+JfO5Lt9 ia1U9L89IQESRSW63mHcAoQrApN0DlrQwIEJYdSzdOJ8TU+yWfedIz0a+Pv9V2jbBp 9VkHs6PYbCUrA== Message-ID: <76a7207a210365b23c078895f444109e240d2c7f.1682660104.git.john.kehayias@protonmail.com> In-Reply-To: References: Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches From: John Kehayias 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-Flow: FLOW_IN X-Migadu-Country: UNKNOWN X-Migadu-Spam-Score: -4.05 X-Spam-Score: -4.05 X-Migadu-Queue-Id: E52453377F X-Migadu-Scanner: in3.migadu.com X-TUID: hFn6iu4YlVMf * gnu/packages/python-build.scm (python-pyproject-hooks): New variable. --- gnu/packages/python-build.scm | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm index 70719c44d4..45b9f52b68 100644 --- a/gnu/packages/python-build.scm +++ b/gnu/packages/python-build.scm @@ -10,6 +10,7 @@ ;;; Copyright =C2=A9 2020, 2021, 2022, 2023 Ricardo Wurmus ;;; Copyright =C2=A9 2022 Garek Dyszel ;;; Copyright =C2=A9 2022 Greg Hogan +;;; Copyright =C2=A9 2023 John Kehayias ;;; ;;; This file is part of GNU Guix. @@ -381,6 +382,46 @@ (define-public python-pep517-bootstrap "Wrappers to build Python packages using PEP 517 hooks.") (license license:expat)))) +(define-public python-pyproject-hooks + (package + (name "python-pyproject-hooks") + (version "1.0.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pyproject_hooks" version)) + (sha256 + (base32 + "1xaf4sharvacqlav6w3b38nc4j0rzg0p4axi7zamanbzp6cb4wgj")))) + (build-system python-build-system) + (arguments + (list #:tests? #f ; disabled to avoid cycle + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'use-toml-instead-of-tomli + ;; Using toml instead of tomli eases bootstrapping. + (lambda _ + (substitute* "pyproject.toml" + (("\"tomli.*") + "\"toml\",")))) + (replace 'build + (lambda _ + (invoke "python" "-m" "build" "--wheel" "--no-isolation= " "."))) + (replace 'install + (lambda _ + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl= ))))))) + (native-inputs (list python-flit-core-bootstrap python-pypa-build-boot= strap)) + ;; XXX: python-wheel isn't needed but replicate the pep517 package or = else + ;; fix packages which will then need python-whell as an input. + (propagated-inputs (list python-toml python-wheel)) + (home-page "https://pyproject-hooks.readthedocs.io") + (synopsis "Wrappers to call pyproject.toml-based build backend hooks") + (description "This is a low-level library for calling build-backends i= n +@code{pyproject.toml}-based project. It provides the basic functionality = to +help write tooling that generates distribution files from Python projects.= ") + (license license:expat))) + (define-public python-pyparsing (package (name "python-pyparsing") -- 2.39.2