all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hilton Chain <hako@ultrarare.space>
To: Wojtek Kosior <koszko@koszko.org>
Cc: Andreas Enge <andreas@enge.fr>, Andy Tai <atai@atai.org>,
	guix-devel@gnu.org
Subject: Re: poetry: python-poetry?
Date: Mon, 31 Jul 2023 10:05:54 +0800	[thread overview]
Message-ID: <87leew25tp.wl-hako@ultrarare.space> (raw)
In-Reply-To: <20230727201038.294f6309.koszko@koszko.org>

Hi,

On Fri, 28 Jul 2023 02:10:38 +0800,
Wojtek Kosior via Development of GNU Guix and the GNU System distribution. wrote:
>
> [1  <text/plain; UTF-8 (quoted-printable)>]
> > The idea is that "libraries" (or "modules") start with python-, while
> > "applications" do not emphasize the language they are written in. Calibre,
> > for instance, also is not called python-calibre.
>
> In this case it seems there are quite a few packages that go against
> this convention. 'python-pip', for example, is mostly used as a CLI
> *application*.
>
> This has been actually causing me confusion. At some point I was
> wondering how I should call a package I was writing and it seems I
> erroneously added "python-" taking example from other packages :/

I think we can define library and CLI program separately, since Python
libraries usually need to propagate some inputs, while CLI programs in
/bin and /sbin do not, as they are wrapped by the build system.

--8<---------------cut here---------------start------------->8---
(define-public python-xxx
  (package
    (name "python-xxx")
    (propagated-inputs (list [...]))
    [...]))

(define-public xxx
  (package
    (inherit python-xxx)
    (name "xxx")
    (propagated-inputs '())
    (inputs (package-propagated-inputs python-xxx))
    [...]))
--8<---------------cut here---------------end--------------->8---

Thanks


  parent reply	other threads:[~2023-08-04 19:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-27  4:25 poetry: python-poetry? Andy Tai
2023-07-27  6:56 ` Andreas Enge
2023-07-27 18:10   ` Wojtek Kosior via Development of GNU Guix and the GNU System distribution.
2023-07-31  2:05     ` Hilton Chain
2023-07-31  2:05     ` Hilton Chain [this message]
2023-08-05  8:39       ` Hartmut Goebel
2023-07-27  7:03 ` Lars-Dominik Braun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87leew25tp.wl-hako@ultrarare.space \
    --to=hako@ultrarare.space \
    --cc=andreas@enge.fr \
    --cc=atai@atai.org \
    --cc=guix-devel@gnu.org \
    --cc=koszko@koszko.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.