From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aK7OLmzQEF++SAAA0tVLHw (envelope-from ) for ; Thu, 16 Jul 2020 22:10:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KES0KmzQEF/0EQAAB5/wlQ (envelope-from ) for ; Thu, 16 Jul 2020 22:10:52 +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 310B19404CD for ; Thu, 16 Jul 2020 22:10:52 +0000 (UTC) Received: from localhost ([::1]:36308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jwC5a-00015W-SC for larch@yhetil.org; Thu, 16 Jul 2020 18:10:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jwC5T-00014a-FO for help-guix@gnu.org; Thu, 16 Jul 2020 18:10:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jwC5P-0005Q6-WD for help-guix@gnu.org; Thu, 16 Jul 2020 18:10:42 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4C2C716005C for ; Fri, 17 Jul 2020 00:10:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1594937437; bh=EynCH9THJiBDy9wVN4H3jczr2Wt9hqnOu55IAEiYoos=; h=To:From:Subject:Date:From; b=Sh2XuAN3wZNr/svD8WjgLOae8xG/AVHWNTmrwWAwySxAg4jYFO6b3eq0nTUILYEWr vLbwqrqV9vQyldJdf/N10vEZNVHWphqoqJE8VsYHBqdjoo/41chUtVeC1PPtYkg9kD XmP614UScQUvbLFIIYqgLmpPZZYyygrYIm6+tIHcuDy561hg5CTZsxwOHbP/g6PJBK Ss1O+CjokrtSfYtQ6OGGFtLp5FDfLcwXeQDIMrEjsrfL6S5/eRaTlJFzevTd4dLS8g OO1HgFxc0n/QTEYAzeR6pUGwhWaYlLm0EGXSgtIVKw+6bNLpmQvEUNaO/9jeJnY3ML 7MKoH0RXFU5pg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4B77jm5gxJz6tmG for ; Fri, 17 Jul 2020 00:10:36 +0200 (CEST) To: help-guix@gnu.org From: Zelphir Kaltstahl Subject: usage of guix import / adding a package Message-ID: <85cf6cfd-5bc1-d04a-7fbb-28e012c40215@posteo.de> Date: Fri, 17 Jul 2020 00:10:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.8.0 MIME-Version: 1.0 Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/16 18:10:37 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=posteo.de header.s=2017 header.b=Sh2XuAN3; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: QYjmXO/5a7Gn Hello Guix Users! I read on https://guix.gnu.org/manual/en/html_node/Invoking-guix-import.html: "The guix import command is useful for people who would like to add a package to the distribution with as little work as possible—a legitimate demand. The command knows of a few repositories from which it can “import” package metadata. The result is a package definition, or a template thereof, in the format we know (see Defining Packages)." I've recently tried this, for example for MyPy: ~~~~ guix import pypi -r mypy ~~~~ This will result in Guile code printed to my terminal. However, I do not understand how to make use of that code. I do not understand how I can load it. For example I tried using the -l argument with guix environment: ~~~~ guix import pypi -r mypy > additional_file.scm guix environment --pure --load=additional_file.scm --ad-hoc python@3.8.2 /home/user/dev/Python/additional_file.scm:2:2: error: package: unbound variable hint: Did you forget `(use-modules (guix packages))'? ~~~~ So that seems to be the wrong way of trying to make use of it. Do I need to provide a patch to the project of the Guix package manager to add this to Guix packages in general and then be able to use it in my local setup? I do not find the info, how I can now use MyPy inside an environment or add it to the available packages on any of the following pages: - https://guix.gnu.org/manual/en/html_node/Python-Modules.html#Python-Modules - https://guix.gnu.org/manual/en/html_node/Invoking-guix-import.html While https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html makes me think, that perhaps I need to submit it as patch to be able to use MyPy. If so, how would I test, whether guix import did its thing correctly? I could try running MyPy in an environment, but for that I would have to somehow make use of what guix import gives me, before submitting a patch. Also, if I need to submit a patch adding the guix import output somewhere, is there a guide on how to create such a patch for the Guix project? Regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl