From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gNzNESeSCGWu0AAA9RJhRA:P1 (envelope-from ) for ; Mon, 18 Sep 2023 20:08:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gNzNESeSCGWu0AAA9RJhRA (envelope-from ) for ; Mon, 18 Sep 2023 20:08:39 +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 1D5E658370 for ; Mon, 18 Sep 2023 20:08:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=SYGEKYqy; 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=1695060519; a=rsa-sha256; cv=none; b=ZeKfTqNRuhxtaQZahjx2fV41zPgG4rfEeKG1bowIXrEc40iKv2OEaplPYl2gh0iIwwXjXI rmnN71kgvEk1I62IpnmfVtLVW3kGReOkfWO7Ma7GnduKm8mibW2s1tx20T9aAWVOKEd2L5 xKuzyCaY6BM+eK1U/1lMDYdEMnTEfRZ142RDhK2ZKPQQeHc9p6kMOJZLm2he7wJxid8gp4 B6gzRM74Onf+nnNFY41YtScXQWCYjyq8RGN93ymQ7vyCOMjlk0yeEX/PA3/KHTqXJ2yctA jnI0pfzJjAbGD4HJv2gPfmjsjnXsFvL5QXMYACWNP+AvWx+glh3KL8el7N5IqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695060519; 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=qM+SVoQB9toi6PC+m9jnwY9o5wFqpZW9jHiqrI8o5XA=; b=cJ5gpUgZZOs7rTpv9lc0rLYUvIpef3DLy3naUILNCQpMMhxm4NHwOkPiwxq078W2Z1EJ6x 1y2RZ3ALsK+vjANjtljwvdeQ7r/+8K/uiR2FKysUtpWCiD+c5v7lfnLcPekl7K3JFsrsPO 9Ssuy5eDeO9OHSx89rvehdwrO8YzHpzKnsrRyBJW74SYgM4NGYHOmVe2LrQ7ATcNxo+zso Lt11RuQb/DGs8c3mW5xCcv5/UgViBmMRKcNQBs9cjwAUCCjUQUTMxg82XM8jrpUh43gl87 4dLSh00RJX4a5KeAPcHlbtPRiLN5Xzay8BTrFHXp3Qe6CVBKro8HvRMrSzos+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=SYGEKYqy; 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) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiIdZ-0005Qe-Na; Mon, 18 Sep 2023 14:06:23 -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 1qiIdL-0005DF-1N for guix-patches@gnu.org; Mon, 18 Sep 2023 14:06:08 -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 1qiIdK-000461-Pi for guix-patches@gnu.org; Mon, 18 Sep 2023 14:06:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiIdT-0002XD-0Y for guix-patches@gnu.org; Mon, 18 Sep 2023 14:06:15 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66092] [PATCH v2 11/23] DRAFT import: juliahub: Improve dependency management. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Sep 2023 18:06:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66092 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62202@debbugs.gnu.org Cc: 66092@debbugs.gnu.org, zimon.toutoune@gmail.com X-Debbugs-Original-Cc: Nicolas Graves via Guix-patches via , Simon Tournier Received: via spool by submit@debbugs.gnu.org id=B.16950603659536 (code B ref -1); Mon, 18 Sep 2023 18:06:14 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2023 18:06:05 +0000 Received: from localhost ([127.0.0.1]:54492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIdI-0002TY-Hz for submit@debbugs.gnu.org; Mon, 18 Sep 2023 14:06:05 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIbm-0002LH-2N for submit@debbugs.gnu.org; Mon, 18 Sep 2023 14:04:36 -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 1qiIbQ-0002Vw-Ln for guix-patches@gnu.org; Mon, 18 Sep 2023 14:04:10 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qiIbA-0003PX-LM for guix-patches@gnu.org; Mon, 18 Sep 2023 14:04:08 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-31ff6420f73so224684f8f.1 for ; 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=1695060225; x=1695665025; darn=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=qM+SVoQB9toi6PC+m9jnwY9o5wFqpZW9jHiqrI8o5XA=; b=SYGEKYqyUmWmjuwnsfmaeF1ItlOLEzus7e7Xi9pvKtyM7L+BmhaAxORqFb7oDYwya2 yRfL7xr2lC7u3/nwvAxyxlv2sYq/J88RNeuAsjCAT3k+aAa1S02oNn2tNZ8UBgxGMNZZ mlvAislJ2o3CUrbsQrdLDWSgJgWbGPgSa1Ku7IKt28qF3Fv9aShh/ZKH3iN9r6UsvXmg B9SyFMsWpMd9dbAg5gA3veUxJjSvh14MnRMucRVuCHtJIhfPD/UWM5gmWMdbIu5Pretk 2LaHb7q4FrkpHljL/lfRysfWO6enzO1WV0LSQeZ2IT/1+hUHdNESXMu2U6EhYShJsLx+ SJDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695060225; x=1695665025; 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=qM+SVoQB9toi6PC+m9jnwY9o5wFqpZW9jHiqrI8o5XA=; b=PirBen2ifXSlAJWQhWCyUXw/8Da8u+EgIsqFE47h7TL4ODplbPCGaWoUVUVDSeV9Gg GAaCpSYLt28VlOm547+OrwXvIvPXlxIXy5MPCxkuTcgG+ODv7Nqp9Xu+JqhXb0olnO3l s3iLm55Be6XGuqtrhrfm4Jk9OrislVEfIHN10tUl1G8HcqoMrA1BtuzfUFFR0p/QJDTf i6YHg8MTYavAUsplAGJpQNop81LvnA71L0A/6hyRNN3Mm4IMw+B0pEagggHev0B1yUZk CVxFhZaPe43Pb3B50gZcpb7yCeE/sCuxpgVvwSK7xtbNjfmewbWZsoJCY/Okh1YixczT nPcQ== X-Gm-Message-State: AOJu0Yw1i2+7hmvOMnwE36YuqBxSOwkKmmxOhJMqUdTAVKVw0V/p309X s4c8MxMd1RkGFRBk3RV9D0c= X-Google-Smtp-Source: AGHT+IH4OIOewHKT4Nf9ssrE49TpirRUfigR1o2uHDImUBPu1yKTaCvO8fipQM4ypDeGNb9Oioqy4A== X-Received: by 2002:a5d:484a:0:b0:31a:ea18:c516 with SMTP id n10-20020a5d484a000000b0031aea18c516mr8306778wrs.3.1695060224905; Mon, 18 Sep 2023 11:03:44 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:03:44 -0700 (PDT) From: Simon Tournier Date: Mon, 18 Sep 2023 20:03:18 +0200 Message-Id: <9c97220836376a2e6de87f52b4a7b842581225ed.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 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.60 X-Spam-Score: -4.60 X-Migadu-Queue-Id: 1D5E658370 X-Migadu-Scanner: mx2.migadu.com X-TUID: yC31Fxg04EEO From: Nicolas Graves via Guix-patches via Signed-off-by: Simon Tournier --- guix/import/juliahub.scm | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/guix/import/juliahub.scm b/guix/import/juliahub.scm index b1eeb736a824..fc25ba1d4220 100644 --- a/guix/import/juliahub.scm +++ b/guix/import/juliahub.scm @@ -168,22 +168,20 @@ (define* (juliahub-fetch name #:key (version #f)) json->juliahub-package)) (define (make-julia-sexp name source home-page synopsis description - dependencies test-dependencies-names licenses) + direct-dependencies test-dependencies-names licenses) "Return the `package' s-expression for a Julia package with the given NAME, -VERSION, URI, HASH, HOME-PAGE, DESCRIPTION, DEPENDENCIES, +VERSION, URI, HASH, HOME-PAGE, DESCRIPTION, DIRECT-DEPENDENCIES, TEST-DEPENDENCIES-NAMES and LICENSES." `(package (name ,(julia-name->guix-name name)) (version ,version) (source ,source) (build-system julia-build-system) - ,@(let ((direct-dependencies - (filter julia-dependency-direct? dependencies))) - (if (null? direct-dependencies) - '() - `((propagated-inputs - (list ,@(map (compose julia-name->guix-name juliahub-dependency-name) - direct-dependencies)))))) + ,@(if (null? direct-dependencies) + '() + `((propagated-inputs + (list ,@(map (compose julia-name->guix-name juliahub-dependency-name) + direct-dependencies))))) ,@(if (null? test-dependencies-names) '() `((native-inputs @@ -211,9 +209,12 @@ (define* (juliahub->guix-package package-name `(tag-or-commit . ,(string-append "v" (juliahub-package-version package)))))) - (let* ((dependencies-names + (let* ((direct-dependencies + (filter juliahub-dependency-direct? + (juliahub-package-dependencies package))) + (dependencies-names (map juliahub-dependency-name - (juliahub-package-direct-dependencies package))) + direct-dependencies)) (licenses (map spdx-string->license (list (juliahub-package-license package)))) @@ -224,7 +225,7 @@ (define* (juliahub->guix-package package-name (juliahub-package-homepage package) (juliahub-package-description package) (beautify-description (juliahub-package-readme package)) - (juliahub-package-direct-dependencies package) + direct-dependencies test-dependencies-names licenses) (append dependencies-names test-dependencies-names)))) -- 2.38.1