From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 7MCCJ1JtYWHYtwAAgWs5BA (envelope-from ) for ; Sat, 09 Oct 2021 12:22:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8CakIVJtYWG5AQAAB5/wlQ (envelope-from ) for ; Sat, 09 Oct 2021 10:22:10 +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 CF995AAEE for ; Sat, 9 Oct 2021 12:22:09 +0200 (CEST) Received: from localhost ([::1]:35472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZ9UW-00038E-VA for larch@yhetil.org; Sat, 09 Oct 2021 06:22:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZ9UQ-000386-8S for guix-patches@gnu.org; Sat, 09 Oct 2021 06:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZ9UP-0005P8-W3 for guix-patches@gnu.org; Sat, 09 Oct 2021 06:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZ9UP-0004Mf-S2 for guix-patches@gnu.org; Sat, 09 Oct 2021 06:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51108] [PATCH] import: pypi: Support 'input-changes'. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Oct 2021 10:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51108 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51108@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163377488116727 (code B ref -1); Sat, 09 Oct 2021 10:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Oct 2021 10:21:21 +0000 Received: from localhost ([127.0.0.1]:52326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZ9Tl-0004Lj-Cs for submit@debbugs.gnu.org; Sat, 09 Oct 2021 06:21:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:38880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZ9Tj-0004La-Tl for submit@debbugs.gnu.org; Sat, 09 Oct 2021 06:21:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZ9Tj-00036d-P0 for guix-patches@gnu.org; Sat, 09 Oct 2021 06:21:19 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:58024 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZ9Ti-00052T-9A for guix-patches@gnu.org; Sat, 09 Oct 2021 06:21:19 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1633774875; bh=NRqMgmb/Cpt0DoQLv3q2S3+41vgt9VzIc+MYtbjvQh0=; h=From:To:Subject:Date; b=MD/k3aMShggZ0gWNVMWZ+q2kZbwtyQK02uiGjrvaZb7xWxtlNTpLEFJynWfua7uhF T+P43G/mblut8fdKTY8Z3d3mqSK23npmTfbp8coyHMzsBW8zNqYM1mGW29/bol7xk5 hzU1msW7CGhCWDmCXj1lsx1jpSJOyvcAmdrxdZzU= Message-Id: Date: Sat, 09 Oct 2021 12:21:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 35 X-Spam_score: 3.5 X-Spam_bar: +++ X-Spam_report: (3.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.5, FROM_SUSPICIOUS_NTLD_FP=1.999, PDS_OTHER_BAD_TLD=1.999, PDS_RDNS_DYNAMIC_FP=0.006, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TO_NO_BRKTS_DYNIP=0.133 autolearn=no autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633774929; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zVvEhvtmAloOh8H3bcWGHDBRqCY2BQhakQBSPJM56UE=; b=lcPG8gMAftz5icwp9cxsbC86eTdm5Fju9KKPtFwsci/V4yPnGn5wAuGKE1PW0QcrEulvck gn8P0kNvjMU1MAXfwrBcqY3EYObP5LqwaLkTCAY/b3b/YNSHdy5Zerw0tyFWgNbPWzvF79 i+qGspwqjX9YlGqyeN+4dqdinhc9Zasrbl3+vyZ7NI4zC80ViO0YfDPsO1aqKpyxyKWo2e GeALuuC/q1738W64idYF/YbfO9FgGPHZ4ICFYUihjyHdlHp1NEBuJJWEizSNaDfGI5+m8M yeSclcIdqEqtUSyTBTWJ5HaIsSWj3bmejOuuT8GLRwtOi4BwqfBFM2t3WS0C5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633774929; a=rsa-sha256; cv=none; b=Cp2lLo6dCGIwJuufNiEOVEADd0+ZNy4Up/MRCVe+1QJ5GunuUh9b6rdtHy11nLcGaNzEhv ZF+/+cHG6J9plljD12vrle4r7MMj7lfIizQ28oBxZkNcOytzkwrGM+xbQ42YrGXKmjqKG8 0hOmq5W8iSQiw55StfL/q3hVo7/p8YtJWEX71/fV3rZeg36MGd3eaC4qqXMhAb627+wAth pHJUTZg3CXCdOiwQLsdlEocjI9N0owHywD0pTr3kZ/9yF9tBqnY7oPtBT1w2CR1Vxg9Dh2 TvaZc2lI8jSCiG4JUM619VuZE7uStQrhxIGBmBZPdCRDcqqTOVwM8fYOrWcLRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b="MD/k3aMS"; 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-Migadu-Spam-Score: -0.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b="MD/k3aMS"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=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-Migadu-Queue-Id: CF995AAEE X-Spam-Score: -0.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: fkfTLy1p2UkN * guix/import/pypi.scm (latest-release): Specify the =E2=80=98input-changes= =E2=80=99 field. --- guix/import/pypi.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm index b7859c8341..52835cf44d 100644 --- a/guix/import/pypi.scm +++ b/guix/import/pypi.scm @@ -532,7 +532,8 @@ (define pypi-package? (define (latest-release package) "Return an for the latest release of PACKAGE." (let* ((pypi-name (guix-package->pypi-name package)) - (pypi-package (pypi-fetch pypi-name))) + (pypi-package (pypi-fetch pypi-name)) + (name (package-name package))) (and pypi-package (guard (c ((missing-source-error? c) #f)) (let* ((info (pypi-project-info pypi-package)) @@ -540,9 +541,12 @@ (define (latest-release package) (url (distribution-url (latest-source-release pypi-package)))) (upstream-source - (package (package-name package)) + (package name) (version version) - (urls (list url)))))))) + (urls (list url)) + (input-changes + (changed-inputs name + (pypi->guix-package pypi-name))))))))) =20 (define %pypi-updater (upstream-updater base-commit: fd8ea9abf5b4ded096b7ccadb5e36fde4bac0867 --=20 2.33.0