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 4FQ0GQtWtGPoDQAAbAwnHQ (envelope-from ) for ; Tue, 03 Jan 2023 17:21:31 +0100 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 WBc7GQtWtGMcBwEA9RJhRA (envelope-from ) for ; Tue, 03 Jan 2023 17:21:31 +0100 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 D081E121BB for ; Tue, 3 Jan 2023 17:21:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCk2B-00005e-SX; Tue, 03 Jan 2023 11:21:03 -0500 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 1pCk26-0008TW-Dg for help-guix@gnu.org; Tue, 03 Jan 2023 11:20:58 -0500 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCk22-0001hw-Id for help-guix@gnu.org; Tue, 03 Jan 2023 11:20:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=uRIYAKspnn0xFrpEY5ic1pLq7Wo9fpE0pARD/+pMQCc=; b=V5cY+tJUHSYDDhvhUPwgvZhy48 MK9BSpGpNCSpTr5rmOIjf9mZuusp9/BLxaqMBweEsrm2OnIwNvjk8qqJCW0850YU2jFZ3w6rz2IFq P8AlsNfstG3Hw3c+iuro7jD7LUbpgHM/26Zyo5hdM1xCIXxI400J5VRQlSOC/ea07wD35VPUTp6Zq GiqmJ6y5IZWw8YYheYaugbkYQhQrs6wr07/2Yuo66b1Szm88X/RoDMBN9GwHfbqMzopijXuM/S8Hq O2zpeWu6hSqOlbii/2cZg1aUv1gvE44ZW8ZjrDtuffI8xl81Ekqh4iCJo71t8ZdOa0Nu+nHq+K2J5 ZeapkCe56xg1KVeepUSq+AuD+QnsScTNO5lGYedmYW1dfMVyriKBy2G2mq0K0qgiziYWqA7bHYk3G UONI1TRU6S7kkPTda6Sv0TGA4u6gotEmEcMpy8DI8JWyi4aKNxR4JILZNGc9/H9syhuL3cTiDhBG0 e9UlTOv61wOHCgCyZoc4tK15ko3PfpZfhqiRqYbf03qZZLvVUjbusEAfCOLhNeVXi9Hpa7QUwxYfi YTCQDC/Ygp6uNTORPyC7XQdZS7rLPt1vlXQJeLePCgPLKlJ3i+7f3yS1ytEPK0o0XiLZmchQ4Uw6V MU2a2n5rxn8F7Ew6gqo6RArpZqkq+crmG6kb5nE/U=; Received: from [77.252.47.247] (helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pCk1y-0006Hd-3N; Tue, 03 Jan 2023 17:20:50 +0100 Date: Tue, 3 Jan 2023 17:20:47 +0100 To: Moritz Tacke Cc: help-guix@gnu.org Subject: Re: Python packages Message-ID: <20230103172047.38eec02e.koszko@koszko.org> In-Reply-To: References: <87cz7ytksj.fsf@duckling> <20230102225043.7c4b3e83.koszko@koszko.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/jg6IhN1fFlXZIth2UP/boLf"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Wojtek Kosior From: Wojtek Kosior via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672762891; a=rsa-sha256; cv=none; b=cU0zzqhijw5dMjKuonVssk+lxMoyMfN+HMRXPtWStUHZ3cEUzSpMgGaLTIDR9bwH3k0i4h m8xrLEu2NMIrhpMRSYvzvPVCimHYT2oz3JakmSZbnrZbyqRMV8ZkfknAOgjYILblwwA0kH ye6luWgklxAi97KX8kKuBbRlL83KkAFMoRMXNcNSqkKJW9OT4fm4jIW53jJEA6y9X8aZje lyW31o79wRttSMFiaz5ot8wL+ILUF9LjLJh88L77qi1yS1apSM3y/Mf8cqRkMm1860kXc5 kLyKFcOcpWsgKeRCMpX3LGLS0WcEViik9/uZNKkrC9K9rqMFhbKtwEbcDcLL0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=V5cY+tJU; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672762891; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uRIYAKspnn0xFrpEY5ic1pLq7Wo9fpE0pARD/+pMQCc=; b=jLSPin96tJIN0oLu2t9ecoYxXYUToBQa93v1lL1QMdgooFhBcjHPVyY5McjF9ERLMjNC3M GX7/KtqMkkc1ACD6I9lbqXWkRCAv0v494O9UU4RLpKP96706cyJIeeiWS+KrkN/kokewNI NZmp/KfjyraiPtzazytY7/W8V8E2cD432MXnrb+zhE9rCuMv+DuPBlWrGSyeYvu0nFVeDi ZVnvYc1cJaouxl5oQK8o3B4MxDiNfqEAf5rRinaCyAFj7bajT9x/IKfGPnGQLKCmFg0W+j NaawgTlImEpJJubIFGDAcadq91YfTDp1JfRdLNT/HtTZt/NWOTongiqkfHHS3Q== X-Spam-Score: -6.76 X-Migadu-Queue-Id: D081E121BB Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=V5cY+tJU; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.76 X-TUID: oa661DoKslLQ --Sig_/jg6IhN1fFlXZIth2UP/boLf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for the details, Moritz. I'll try to clarify everything for you. Although you sent your response just to me, I'm adding the help-guix mailing list back into the CC field of the email (so that others can see and perhaps add some useful advice at some point). So, Guix uses its own repository for packages. Although it is a special kind of package manager (a transactional one), in this specific regard it is just as every conventional distro's package manager (e.g. APT, RPM) =E2=80=94 it needs given program to be packaged by someone and added to its repository for it to be directly available to users. Apparently, nobody has packaged WFDB yet, hence `guix search` gives you nothing. `guix import`, on the other hand, is a tool meant for people who want to package stuff by themselves. Its target audience is both packagers and advanced users who are able and willing to package the missing software by themselves. In fact, those 2 roles can (and should) overlap :) So, `guix import` is a tool that just aids in making a Guix package. It tries to guess some things and it cannot guarantee it will guess correctly (since sources like PyPI often lack all the information required to automatically make a working package). The generated .scm files are therefore meant to be reviewed and edited by the user. Once you get everything to work, you can (and are encouraged to) help others by submitting the new package definition for inclusion in Guix. This, of course, requires a bit more effort (cloning the Guix' git repo, placing your package definition in the proper file under `gnu/packages/`, etc. More information here[1]. Once you get through this, others will be able to `guix search` the package :) Don't be surprised if many useful pieces of software are not yet in Guix. You can look up the number of packages in Guix, Debian and NixOS. Guix is a younger distro and therefore has way fewer packages =C2=AF\_(=E3= =83=84)_/=C2=AF I hope I helped Wojtek [1] https://guix.gnu.org/manual/en/html_node/Contributing.html -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #42: blessed Rafa=C5=82 Chyli=C5=84ski Poznaj =C5=9Bwi=C4=99tych krakowskich! #42: b=C5=82ogos=C5=82awiony Rafa= =C5=82 Chyli=C5=84ski https://pl.wikipedia.org/wiki/Rafa=C5=82_Chyli=C5=84ski -- (sig_end) On Tue, 3 Jan 2023 11:33:24 +0100 Moritz Tacke wrote: > Sure! > I'm currently trying to install the WFDB python library. It is hosted on > PyPI (pypi.org/project/wfdb/), but I can't find it using "guix search". > What I did then was to use "guix import", which created a .scm-file. This > file was not yet sufficient to use it directly for installation, therefore > I had to modify the file (import some other files, change a problem in the > license statement). This lead to a .scm-file I could use to install the > module from the PyPi repository. Somehof I had the impression that I was > not using the tools in the right way, e.g. why "guix import" returned a > file that was not complete (but, instead, needed some quite mechanical > modifications from my side). I was hoping that, somehow, there would be a > way where I can packages from PyPi directly, with one single guix command. >=20 > On Mon, Jan 2, 2023 at 10:50 PM Wojtek Kosior wrote: >=20 > > > Hi, > > > > > > I am trying to use guix to install packages that debian does not > > > offer. However, in most cases (python modules) the package can't be > > > installed directly using guix as the package file is missing. What is= the > > > correct way to proceed for e.g. a pypi module? I am currently creatin= g a > > > package file myself, but is this the way it's meant to be? Is there a > > > standard place to store such custom scm files? > > > Greetings! > > > > > > Moritz =20 > > > > I'm not sure I fully and correctly understand the question. Can you > > clarify what you mean by "package file is missing"? Where is it missing > > from? How are you creating the packages yourself? > > > > Wojtek > > > > -- (sig_start) > > website: https://koszko.org/koszko.html > > PGP: https://koszko.org/key.gpg > > fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A > > > > Meet Krak=C3=B3w saints! #10: blessed Hilary Januszewski > > Poznaj =C5=9Bwi=C4=99tych krakowskich! #10: b=C5=82ogos=C5=82awiony Hi= lary Januszewski > > https://pl.wikipedia.org/wiki/Hilary_Januszewski > > -- (sig_end) > > =20 --Sig_/jg6IhN1fFlXZIth2UP/boLf Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY7RV3wAKCRBLxSIcWnn9 GvlUAQDv+50Ey2pC83mPnR0HhCf2wChVdmCkF0ravT6Ny9BUMAD/eOgzIDvso/RR itHJET4pRgBeDQj7X8XCCiQHyEC/gQg= =1ner -----END PGP SIGNATURE----- --Sig_/jg6IhN1fFlXZIth2UP/boLf--