From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cEW6Op+RCGUPrgAAauVa8A:P1 (envelope-from ) for ; Mon, 18 Sep 2023 20:06:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cEW6Op+RCGUPrgAAauVa8A (envelope-from ) for ; Mon, 18 Sep 2023 20:06:24 +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 B875851562 for ; Mon, 18 Sep 2023 20:06:23 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=mJVEEKoA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695060383; 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=skJOf1DBllhMdwi8a7KPjGXvCMcceEa6MzsLzGA6xQM=; b=ISfeNSFrWekHJPIg7hr3YOxxKsB4Nx69DXVu4LkzYaL8K8B15CfRCix2CINM2L8nHfnvGv nU+ecjlTQVQkRX6IljSmH0mPDoty4Z76R13w8vHICHgXlO3Gh0cjCCj8DC93ZW54YQkFdp /JUqHt3HThc7+bKhKx0qgWXOKMeAyYYPXe6+QZnWXaKS3g9xjWe5Mrax0JBXj2qV466RSD D0KvjVV4KbPlK9+K2QdjYHUe4FV/wtdaN1a+FuOf871cG41WZWdeaCPF9O28Y2t5Y4mdJL mOPfsxmWtg0AMtd7QFgMPkTWGcvK6+mfg6Uzr3Wi/FvzEbSAK6uumA/Stc2zig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695060383; a=rsa-sha256; cv=none; b=KzDfNJilhVfEksVdx/lou76ak7CiPkRdV6sh95Lnd3JjaTa8QANT2GCaLJQWnxtFYXe73W Twh+YfdSDMod+twp432p0YJ+SSBSju6sJtPwqzlJB9QKko54JuvG5imJcFZ99+QyUFlMmJ bZb2XZ9+ElLykYKg5TsIHNM41rndZG8z0EGBap5igk46dobj2renz08ZPutftpMNCp4tVF YjihLoB8JBI7fZL8CBT1uLzMjTZ4Jsz8T7dXpPDBSFY0Wxz5kqnnGMOOCZHAsPrYC8WBgF JVtGKHgiEgLal36OZCkd7iejrM60RrxWNLr7M7pLPaMpRYzEuenD7DJEUOVxkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=mJVEEKoA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiIcT-0003bS-6h; Mon, 18 Sep 2023 14:05:13 -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 1qiIcC-0003Ac-3N for guix-patches@gnu.org; Mon, 18 Sep 2023 14:04:57 -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 1qiIcB-0003YJ-Rz for guix-patches@gnu.org; Mon, 18 Sep 2023 14:04:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiIcK-0002Ne-4k for guix-patches@gnu.org; Mon, 18 Sep 2023 14:05:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62202] [PATCH v2 07/23] DRAFT import: juliahub: Add indirect dependencies. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Sep 2023 18:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62202 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 62202@debbugs.gnu.org Cc: zimon.toutoune@gmail.com X-Debbugs-Original-Cc: Nicolas Graves via Guix-patches via , Simon Tournier Received: via spool by 62202-submit@debbugs.gnu.org id=B62202.16950602528820 (code B ref 62202); Mon, 18 Sep 2023 18:05:04 +0000 Received: (at 62202) by debbugs.gnu.org; 18 Sep 2023 18:04:12 +0000 Received: from localhost ([127.0.0.1]:54375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIbT-0002I7-B5 for submit@debbugs.gnu.org; Mon, 18 Sep 2023 14:04:11 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:38091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIbE-0002Ef-UR for 62202@debbugs.gnu.org; Mon, 18 Sep 2023 14:04:00 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-31f7c87353eso946119f8f.0 for <62202@debbugs.gnu.org>; Mon, 18 Sep 2023 11:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695060223; x=1695665023; darn=debbugs.gnu.org; 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=skJOf1DBllhMdwi8a7KPjGXvCMcceEa6MzsLzGA6xQM=; b=mJVEEKoAxG8tpyfS37GPP2In9AFj4K77MuRxkDjhTAkQRRR/LNlCeM9nugTNdE9vn9 SDTBVFCwsZkZru91dSE6KTDO6Z/OXgrFj5Wtb2zHAySvDKvi1dJqL7DfNAOc1ahUtKkL C11PWSQqratNENbQIVE3N7XOhzdWWyd0rwojUOvHlF3IuNxX3R+miSWkmzkY5tVMUhWZ J2mMaQ7SWzTf1DPyxPVKi2yGb+Xd8PHYPUmS2pZpDsS6q+dKl37EtKlWhQUz6oqnB5+S gPtecIAGYaVs+jBZRLNge2WsP+8Xn8JvbaIlsg1G5za1AAvoo32MdoqoATbUzu7WDjvm slug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695060223; x=1695665023; 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=skJOf1DBllhMdwi8a7KPjGXvCMcceEa6MzsLzGA6xQM=; b=GXJSRSEw8fIratO5tZiD0TYJTPgqRNdjxPO2F5BxuAiO9WIMlhnQkZlnYneTyR9Ynu wavdeqyC93nhARfA9m+5mVtgROktLcSegWDlImWa8z/7UrDWFIRbCiQYKFcqNSNiH+lw 8Xavo8WsFxS9cqmtbG0n0S2/KIZmuqP0gKPmaG1poCZHXV/OKtd9XuxKMEYjpoG4r1Wt P1JEWSQs4c80kLd/DdBgBa8eSlkF0Njpu68SEU75AA8OpFKLt91DFRuxCJMR/6NJjgWD Gwa5WRaGFA+pZqCip4CW2I0NGYEIz9wn2WFtQeQleCgAZdKRJ3C4VqECpdCUL8jktehg Kz1A== X-Gm-Message-State: AOJu0YyjAviTRPT3Jcljq2HuSGLAFtMflY0KhT5qwZdnCY/D7c+uzksi H1dfA+W8clVSUSDMky0bEI2qv1Ks08E= X-Google-Smtp-Source: AGHT+IG38G6yAu8JWH8NqVqdmdowLZTl4+N/W5o3WEMSCbWHIPWG6wU0Id90/z4csPst1GtZzn1Bfg== X-Received: by 2002:a5d:43c3:0:b0:31f:84c9:d75f with SMTP id v3-20020a5d43c3000000b0031f84c9d75fmr7786907wrr.4.1695060222784; Mon, 18 Sep 2023 11:03:42 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id z2-20020adfd0c2000000b0030ada01ca78sm2210465wrh.10.2023.09.18.11.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:03:42 -0700 (PDT) From: Simon Tournier Date: Mon, 18 Sep 2023 20:03:14 +0200 Message-Id: <9582ebba5df585ec5c71e008e71aaefafc036753.1695060058.git.zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 6.25 X-Spam-Score: 6.25 X-Migadu-Queue-Id: B875851562 X-Migadu-Scanner: mx0.migadu.com X-TUID: ta4hehwW+kPF From: Nicolas Graves via Guix-patches via Signed-off-by: Simon Tournier --- guix/import/juliahub.scm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/guix/import/juliahub.scm b/guix/import/juliahub.scm index 4c3ceed10904..fb361a004435 100644 --- a/guix/import/juliahub.scm +++ b/guix/import/juliahub.scm @@ -67,6 +67,16 @@ (define (json->juliahub-direct-dependencies vector) #f))) (vector->list vector)))) +(define (json->juliahub-indirect-dependencies vector) + (if (vector? vector) + (filter-map + (lambda (el) + (let ((dep (json->juliahub-dependency el))) + (if (not (juliahub-dependency-direct? dep)) + dep + #f))) + (vector->list vector)))) + (define (ini-list->extra-dependencies lst) (match lst (('(extras) ooo ...) @@ -103,6 +113,9 @@ (define-json-mapping make-juliahub-package juliahub-package? (direct-dependencies juliahub-package-direct-dependencies "deps" json->juliahub-direct-dependencies) ;list of + (indirect-dependencies + juliahub-package-indirect-dependencies "deps" + json->juliahub-indirect-dependencies) ;list of (url juliahub-package-url) ;string (uuid juliahub-package-uuid) ;string (license juliahub-package-license)) ;string @@ -181,7 +194,7 @@ (define* (juliahub->guix-package package-name (juliahub-package-direct-dependencies package) test-dependencies-names licenses) - (append dependencies-names test-dependencies)))) + (append dependencies-names test-dependencies-names)))) (values #f '())))) (define* (import-release package #:key (version #f)) -- 2.38.1