From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cIybF0/qxGOkagEAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 07:10:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0FinFk/qxGN/uQAAG6o9tA (envelope-from ) for ; Mon, 16 Jan 2023 07:10:23 +0100 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 1B92A3E1E for ; Mon, 16 Jan 2023 07:10:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHIgk-0004jd-6H; Mon, 16 Jan 2023 01:09:46 -0500 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 1pHIgi-0004ii-Ho for guix-patches@gnu.org; Mon, 16 Jan 2023 01:09:44 -0500 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 1pHIgi-00004s-7w for guix-patches@gnu.org; Mon, 16 Jan 2023 01:09:44 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHHpm-0004jw-VT for guix-patches@gnu.org; Mon, 16 Jan 2023 00:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60849] [PATCH core-updates 3/4] gnu: python-pycryptodome: Fix build and enable cross-compilation. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Jan 2023 05:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60849 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60849@debbugs.gnu.org Cc: jgart , Lars-Dominik Braun , Maxim Cournoyer Received: via spool by 60849-submit@debbugs.gnu.org id=B60849.167384607017922 (code B ref 60849); Mon, 16 Jan 2023 05:15:02 +0000 Received: (at 60849) by debbugs.gnu.org; 16 Jan 2023 05:14:30 +0000 Received: from localhost ([127.0.0.1]:60170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHHpF-0004ey-Eu for submit@debbugs.gnu.org; Mon, 16 Jan 2023 00:14:29 -0500 Received: from mail-qt1-f169.google.com ([209.85.160.169]:41778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHHpB-0004eG-Kd for 60849@debbugs.gnu.org; Mon, 16 Jan 2023 00:14:26 -0500 Received: by mail-qt1-f169.google.com with SMTP id d16so10908102qtw.8 for <60849@debbugs.gnu.org>; Sun, 15 Jan 2023 21:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uFgwAeqOV9gRBIea9PHHiYHtDpltqOyl85c+IZOkhXY=; b=QdpE922Vsh1NzpnG2ahxpP0IFw492nEphHLGAUt39j4+76fsjQG//X/3x/ntm9WGrS seE1buvQ0viVGI6jrW7ZrJYGA29MuT2bPDE9HsqqacsIhADDeMhK8vFz+fPWgDwKRPyH Hf5PqkWyK3pkX+67yJdHvPfH1TiYXUdFhrxSN/M0fMzblJGtmuY76VAyiY5L2yWBhJ2R PHmVDH+AmMl88ZDeYTQhpGgsf52q6qakHyDfq7XDBrJDuDPdd4aOpbTK7U15aa0cPL70 sogi3o9ennXJvTrF8RtKGKRz721NoAfvW8ufCOapS6p3uX7DYz23mx5GP8BgnkC4ygCU K5Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uFgwAeqOV9gRBIea9PHHiYHtDpltqOyl85c+IZOkhXY=; b=4hPNfyipskCG7yrSUpkqpLfFHuRMCT9s8kZ1SQBg6S2aNGiN9r6ZtsF9YBaLp49maw YDf/EDj2teAJ6q8nsUXGUtkwfie6rp4Lx5Te3QR10kYCRaaAj7pUDl8JGCq4IWrVTqkE kBHA9cL+glqRGpVbWFvwzEZIU0iz20+G3Xu49uz6pUHyiPkBdZC/u7JAInRLd6Uhl7mX err/EyIevav5f2oP3Iik96JJ3lR8+T9dpUJ0zZxQL8rFTuALIZcYf8WwfBuZm7ch5OV9 fur+M4EIdkwYX6uzKlLq72qieAY44i2QEYZrjFpniGE0QFqdNtCNQxmwNKTv+qMeYk+i KbBQ== X-Gm-Message-State: AFqh2kraFn6xaxIbVxmiarS1f//uSgcgXLRAB2ant8FLlZR+/rFH04Db FF3n4xbkrvZrrb7zlAIphCztH/RqeO2Jbwgd X-Google-Smtp-Source: AMrXdXuNcuW4cex1rYqkQubk/yWxHsKepbTvjjzvreK5fEtwriVRtTvi1vfHmT4tQQGYtBCC+d2Q0Q== X-Received: by 2002:ac8:1249:0:b0:3b0:e83e:4331 with SMTP id g9-20020ac81249000000b003b0e83e4331mr26516767qtj.44.1673846060169; Sun, 15 Jan 2023 21:14:20 -0800 (PST) Received: from localhost.localdomain (dsl-10-130-209.b2b2c.ca. [72.10.130.209]) by smtp.gmail.com with ESMTPSA id em8-20020a05622a438800b003a82ca4e81csm8084590qtb.80.2023.01.15.21.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Jan 2023 21:14:19 -0800 (PST) From: Maxim Cournoyer Date: Mon, 16 Jan 2023 00:13:38 -0500 Message-Id: <20230116051339.27113-4-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230116051339.27113-2-maxim.cournoyer@gmail.com> References: <20230116051339.27113-2-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QdpE922V; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673849423; a=rsa-sha256; cv=none; b=D40QGbVIHHOfLu/96Y1bGcY8LZXZwy7O7YkHpTLLvHWAPTQoaS/97W/jng9xF4a99EGCnh miI/+SR1sjdOypyMxpcJjFJmbDBr8lmD61V/SQtYX4Po0YmBYOTmVfO//uGYjhnTWiVH3U 6i/kORWznVzfNe5JwsjDDycBGct01AN6QQ6XmfsJafcGy4+YvzjCom7GCkDgD/3ckN6+3i 9fr4iXwt4xFU99JZX7wttqP+buTgGG/Olp5CiipyRtnjrj9H7yB71/jqKNQxT/xyiNcB/J 3m1YiA7ZFS5mhUtyjz4MrZiyAG6cCEKEQMAnw2FgAjde3wNb9GNortwXiUrbRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673849423; h=from:from:sender:sender: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:dkim-signature; bh=uFgwAeqOV9gRBIea9PHHiYHtDpltqOyl85c+IZOkhXY=; b=BPJasaN91aBTanft0VWDkHqqXm2FgqcNa1iiFBoowJyKKcMSM/E240JyX4lweuXl/qTTta 0CZe+EUaF33oMRs406kGUVgN43KyDCnyjtjaN3eBCwcJ6r4LoVM9WWY4b/E78Sv6NfNUis wMmG32OXxTpb1RX6+pdzQpRzVBmKoX8krYglpfLX/rgA7q1YcPu8dcL2JtLVfphymO2Aqp B+osFonTuy7vxxHAxRD4CEqvZ7YgAw+/aeCeUaX3x+UflO8m7lKUcdytFnD9hCxVLeJIdy W+m24Kbw5pbtH9BXXiRgFuxewOiVgkI2HZfQ3CQZoa5Rdj43TCb/kY3ujuEwUg== X-Migadu-Queue-Id: 1B92A3E1E X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QdpE922V; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Spam-Score: -0.52 X-Spam-Score: -0.52 X-TUID: mYpAR8jHf6Cv * gnu/packages/python-crypto.scm (python-pycryptodome) [build-system]: Use pyproject-build-system. [arguments]: New field. [inputs]: Re-indent. --- gnu/packages/python-crypto.scm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index c9071c4cf6..9023a5e054 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1012,9 +1012,23 @@ (define-public python-pycryptodome "1f0qc0ns3ppybkr7wi66gsl5wfkcx1fdklmh3362nn84spddsdci")) (modules '((guix build utils))) (snippet pycryptodome-unbundle-tomcrypt-snippet))) - (build-system python-build-system) - (inputs - (list libtomcrypt libtommath)) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'extend-C_INCLUDE_PATH + (lambda* (#:key inputs target #:allow-other-keys) + (if target + (setenv "CROSS_C_INCLUDE_PATH" + (string-append (search-input-directory + inputs "include/libtomcrypt") + ":" (getenv "CROSS_C_INCLUDE_PATH"))) + (setenv "C_INCLUDE_PATH" + (string-append (search-input-directory + inputs "include/libtomcrypt") + ":" (getenv "C_INCLUDE_PATH"))))))))) + (inputs (list libtomcrypt libtommath)) (home-page "https://www.pycryptodome.org") (synopsis "Low-level cryptographic Python library") (description -- 2.38.1