From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 YLczLQ9gtGODZwEAbAwnHQ (envelope-from ) for ; Tue, 03 Jan 2023 18:04:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8KRNLA9gtGMGPAAAG6o9tA (envelope-from ) for ; Tue, 03 Jan 2023 18:04:15 +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 56FD51345E for ; Tue, 3 Jan 2023 18:04:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCkhf-0001nl-EB; Tue, 03 Jan 2023 12:03:55 -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 1pCkhU-0001jy-UY for help-guix@gnu.org; Tue, 03 Jan 2023 12:03:44 -0500 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCkhS-0000xQ-8E for help-guix@gnu.org; Tue, 03 Jan 2023 12:03:44 -0500 Received: by mail-ed1-x531.google.com with SMTP id z11so28875957ede.1 for ; Tue, 03 Jan 2023 09:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=1uOdTS7bglfSaGab/InMjz4OnJPAspsWoKtknjBV1f4=; b=XxI+tBzQr5H/xIEeMQa9AIfdwSkjce1qac4KFMBT4Tqp6VwKWvuYMsMs9MThB1pYm7 EUe+VgtaePpgWUPOIyrJxxlG2wn5q2LsrEPzYs88akZHfh2AqFmo1v4V0i31+bN1DJhJ K8pCgD9hzIxw/zq3mmw3rmedOY1fm4ulwtvHNyJCDZVcWA2DTiKjCrlY0Qg7viny0iKI U/m4ulOQ1HMveHou2YaCKkCfz0U15CqdhzcrWosRu8jqIuN9ZZTbyNoExFFUlJrx3PJT 6ediH7UWlglfSjBuAeX/cToIpGHJ7pEBAiOR8uNi+JgTaQt4uCGJSNppHcNjIIwiS+Bg yRiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=1uOdTS7bglfSaGab/InMjz4OnJPAspsWoKtknjBV1f4=; b=uuPTCeX/eD/CVoH7d/u9cjwMJmiIjF7TPaE1KJjWrWQRYecklzsA5eCzGhnriddAVz uuMP+jGNMT2huZrl4WrwnARDJ9HbaaKveGLHcJy9gy2JQCExssB145EN2Uf0+OG8Jy1x o0FUr0Qnzo9hSEKXX81VAHhENnuZkRdqDFqTeoO7v2z9rZOid0Xhf32hbguJ3p1P/1Er lHYkZ2LvGsdS5cHWOM5kja2KJiUAZcIE4Q+8v4NoCIkqU0Z+rIxW7uA9h8gec1I+9cjw YvzCVIVifzeJ+9ZTVrGTq53FM5B/2ppW9tMY/W9wgwgBqLcdyKT+joK6ECnnXdiyic5w PqBQ== X-Gm-Message-State: AFqh2koGaN+dQFXezlX8lJ3fOe9KW9+vbNLqtXevC6RZZqbxAqo7+XJG BrG6uNQfS0w5kapmjGF4QKKXPWVGRg== X-Google-Smtp-Source: AMrXdXs/61Fy4DXtwOtZcW5GhvofcOM5b3YpCkceqXHtliJ/ZP/LnI/Vnaxv2ZLe2ra1izbCnmlu3A== X-Received: by 2002:a50:fe94:0:b0:48e:a9a1:c584 with SMTP id d20-20020a50fe94000000b0048ea9a1c584mr3926854edt.35.1672765418853; Tue, 03 Jan 2023 09:03:38 -0800 (PST) Received: from duckling.gmail.com (ipservice-092-218-134-241.092.218.pools.vodafone-ip.de. [92.218.134.241]) by smtp.gmail.com with ESMTPSA id er14-20020a056402448e00b0048ec121a52fsm960209edb.46.2023.01.03.09.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 09:03:38 -0800 (PST) References: <87cz7ytksj.fsf@duckling> <20230102225043.7c4b3e83.koszko@koszko.org> <20230103172047.38eec02e.koszko@koszko.org> User-agent: mu4e 1.8.10; emacs 28.2 From: Moritz Tacke To: Wojtek Kosior Cc: help-guix@gnu.org Subject: Re: Python packages Date: Tue, 03 Jan 2023 18:03:28 +0100 In-reply-to: <20230103172047.38eec02e.koszko@koszko.org> Message-ID: <87fscr35zq.fsf@duckling> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=moritz.tacke@gmail.com; helo=mail-ed1-x531.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: , 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=1672765455; a=rsa-sha256; cv=none; b=PTMqguTOfEUV88DJEa/3onQi6I9rSTsIH2j0witBznjiBauYo+zI+VTEl9tXAp0IUJcavZ xmCGF6rUYcao9b4OCHm6BiFRTd2vH67PyIVaKrAQ9BBItIZFvcySLxwrs2ppwtYYvbMq9U 3HyUc91iVlpCJ6Wdy2AfmgJl8pIRZdXvE1ufIyGh9CoaknqlkpQKigqV6EClRm7+z6+Ufv OPfbj5O01tWj0Tdi8QVrsRlsxUg8eXaN14katNZnF2tj+IY7RpHLG+rHWOm8dEkCxx9jvn HAVYYFEDO9OTHSL9tOFYBQcW0ZFRwaq4PEgw5w4fFePZ3ff1SgxPnyrFeEZH1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XxI+tBzQ; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672765455; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1uOdTS7bglfSaGab/InMjz4OnJPAspsWoKtknjBV1f4=; b=Xvcl63uQMFlNbLtIiu2E4+aFv90vznHQ3mAPmfC36M3HhuUCOiFUHF8JGDeU7xjMenz53W 7TkaoNZvsWQR6y6884INPW+4fvKKksbRFHMawdjoj+5CAgg4+5MpvAeKli/sy6VbkHuTZM YyxN5BGYh1DKOU0GLFLe/ECobSVTzUbW0Swo22VLX2uQHukltuMW7QfLk9InsJUwehksKb Yr0ggr2dN5x1SappkZLMS9h0oJPlbUCgHd/8vEvUA5NMT7VGcf5bkkzi09I1qTRtl3oSom K7eWOBc88htW7lYstKNXFAy7634rOuL2hUbM0whMrHEj9Opwn1lyPYJBl6TcGg== X-Spam-Score: -10.97 X-Migadu-Queue-Id: 56FD51345E Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XxI+tBzQ; 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=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -10.97 X-TUID: MAb84svcAAed You did, thank you very much! Wojtek Kosior writes: > [[PGP Signed Part:Undecided]] > 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, therefo= re >> I had to modify the file (import some other files, change a problem in t= he >> 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 comman= d. >>=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 i= s the >> > > correct way to proceed for e.g. a pypi module? I am currently creati= ng 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=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 H= ilary Januszewski >> > https://pl.wikipedia.org/wiki/Hilary_Januszewski >> > -- (sig_end) >> >=20=20 > > > [[End of PGP Signed Part]]