From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 UGtcAdAANmN44AAAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 22:32:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QK2JAdAANmMZEQEA9RJhRA (envelope-from ) for ; Thu, 29 Sep 2022 22:32:16 +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 D5C4C3C680 for ; Thu, 29 Sep 2022 22:32:15 +0200 (CEST) Received: from localhost ([::1]:36692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oe0Cd-0008UL-1n for larch@yhetil.org; Thu, 29 Sep 2022 16:32:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oe0CQ-0008Te-CR for guix-patches@gnu.org; Thu, 29 Sep 2022 16:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oe0CP-0000Yk-US for guix-patches@gnu.org; Thu, 29 Sep 2022 16:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oe0CP-000856-PK for guix-patches@gnu.org; Thu, 29 Sep 2022 16:32:01 -0400 Subject: bug#58020: [PATCH] import/utils: alist->package: Include properties. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Thu, 29 Sep 2022 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58020 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: itd Cc: 58020-done@debbugs.gnu.org Mail-Followup-To: 58020@debbugs.gnu.org, ludo@gnu.org, itd@net.in.tum.de Received: via spool by 58020-done@debbugs.gnu.org id=D58020.166448348031005 (code D ref 58020); Thu, 29 Sep 2022 20:32:01 +0000 Received: (at 58020-done) by debbugs.gnu.org; 29 Sep 2022 20:31:20 +0000 Received: from localhost ([127.0.0.1]:39710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oe0Bk-000841-Ab for submit@debbugs.gnu.org; Thu, 29 Sep 2022 16:31:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oe0Bh-00083n-S7 for 58020-done@debbugs.gnu.org; Thu, 29 Sep 2022 16:31:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oe0Ba-0000QX-Rh; Thu, 29 Sep 2022 16:31:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=3+uowqzWH5JlC9j5mGFUKLfeH+74QHiMe4i3IJj0wog=; b=n/YHG2XrWv+VmBKYcGuB jx7KKn2f9b51PvR86Swct+7eou/ZceYvj940BvAIE/O0V0V5eLHHD4cyBJfCO//xURlEl1VFlQrZA yP8whhzzw6Hsmp8Bq1YAc6qgfjmXzt/g+7U8K6TUnC+FRHy2XqH223MPnr+UpD9iwVAN9ezrM0x19 aGQK2IbNNXKSYmT3sN9eBusyUwF3MKJfRaK6bAlPG+x4ySXP4lNqOrmWMNiR58057vgvvVnSMG42o jt98Lk1khTD0cqiIfB/okjNrwqMq5v37Vwgo5n28wWpZsWpnGDcKB9Yo5bvAbMY/BhXv1TvsN99fO 75fFizIGOwQJUw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:51642 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oe0BY-0003Xr-E3; Thu, 29 Sep 2022 16:31:09 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87mtaqilj6.fsf@localhost> Date: Thu, 29 Sep 2022 22:31:06 +0200 In-Reply-To: <87mtaqilj6.fsf@localhost> (itd@net.in.tum.de's message of "Fri, 23 Sep 2022 09:42:53 +0200") Message-ID: <87wn9l9b3p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664483535; h=from:from:sender:sender: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-to: 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=3+uowqzWH5JlC9j5mGFUKLfeH+74QHiMe4i3IJj0wog=; b=PCBf3/NKzqNgpSz69LbOzkGBlEjfmj3kKL/NkjA6pj8gfs+XMwKV3yajE3Pc7NL0ksJu6J 4nMl7Yvoe4MLylNUh5Qcsn7U+Ye3ov6hvQHkqQS2IaFJS3NVtz9VBkeV8/eiCPlOgg0t2A VIFFZviCIvDYMRHXzgZYfCOxdqjMdD7iMhAANzuYn54aib9BtpjJBLrr51v56VVepmJqGC UWDpsekzmA1ZkCxCQXrJoVOBf7ARsVD0TfOFhiWrjJ1KBhZcaX38IVImvAuqFBl/vpyL9w EnZb5o+RvYAc7cW9SWohwWWdg52LSqYuM2T7ElbzaujqMRqYA3lv+tl2sJ/ftw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664483535; a=rsa-sha256; cv=none; b=AY/ot2Ax5DscB3/HSRLRTHxEqZNuOcM/JBCiE6xU7eKsYv9f+G/+6961xJf/842oCUePe9 vR9KhQPjAV+1Awy0A+c8DDtjvSO9+SAVL0IJKkEnBlziTbzrSZbW4VPhLcijW73wMWE2ns K3gHqKsBtXQMF+Bvqc8+x7PK0rAh2iFQuNNldROqcgDf2S8leL8+PdZ0JHsk6MgX+zQD8F 3bPINW7/BbEXBGhYSPVvKH3TqJ3yPREsNYNgeLrEMVVnBligyQN7Jhd1iMPyKGumW64WC8 E4nZBUz52Y9+c/JrjAr61IkVE4IvAZ491rv2PDOCL9LJ70CcTjNVVCBIbFJXwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="n/YHG2Xr"; 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: -2.84 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="n/YHG2Xr"; 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: D5C4C3C680 X-Spam-Score: -2.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: +2x/eqZqsAO7 Hi, itd skribis: > * guix/import/utils.scm (alist->package): Process properties field in inp= ut > data and include it in the generated package. > * tests/import-utils.scm ("alist->package with properties"): New test. [...] > + (define (process-properties properties) > + (append-map (match-lambda > + ((key . value) > + (acons (string->symbol key) value '()))) > + properties)) I applied the patch and simplified this one. > * guix/import/print.scm (package->code): Quasiquote properties. > * tests/print.scm (pkg-with-properties, pkg-with-properties-source): > New variables. > ("package with properties"): New test Applied, thanks! Ludo=E2=80=99.