From: Wojtek Kosior via Guix-patches via <guix-patches@gnu.org>
To: 64869@debbugs.gnu.org
Cc: Wojtek Kosior <koszko@koszko.org>,
Lars-Dominik Braun <lars@6xq.net>, jgart <jgart@dismail.de>
Subject: [bug#64869] [PATCH 2/2] gnu: Add python-pipx.
Date: Wed, 26 Jul 2023 11:09:02 +0200 [thread overview]
Message-ID: <ce0bdf79a0aa89760d2e7590a3a9702a51ddec31.1690360848.git.koszko@koszko.org> (raw)
In-Reply-To: <cover.1690360848.git.koszko@koszko.org>
* gnu/packages/python-xyz.scm (python-pipx): New variable.
---
gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 022d26694c..c7f2bb4a4e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5262,6 +5262,44 @@ (define-public python-userpath
This tool is unfortunately not compatible with {guix home}.")
(license license:expat)))
+(define-public python-pipx
+ (package
+ (name "python-pipx")
+ (version "1.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pypa/pipx")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "112vmvd5h7gmpr8flar4848h6gm0i2s52s8xa5dbiffdr7xx0vwn"))))
+ (build-system pyproject-build-system)
+ (arguments
+ `(#:tests? #f ;tests require a bunch of wheels from the network
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((doc (string-append (assoc-ref outputs "out") "/share/doc")))
+ (mkdir-p doc)
+ (for-each (lambda (file)
+ (copy-file (string-append "." file)
+ (string-append doc file)))
+ '("/CHANGELOG.md" "/LICENSE"))))))))
+ (native-inputs (list python-hatchling))
+ (propagated-inputs (list python-argcomplete
+ python-packaging
+ python-userpath))
+ (home-page "https://pypa.github.io/pipx/")
+ (synopsis "Install and run python applications in isolated environments")
+ (description
+ "@code{pipx} is a tool to help you install and run end-user applications
+written in Python. It's roughly similar to JavaScript's @code{npx}, and
+Trisquel's @code{apt}.")
+ (license license:expat)))
+
(define-public python-uc-micro-py
(package
(name "python-uc-micro-py")
--
2.41.0
prev parent reply other threads:[~2023-07-26 9:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 9:05 [bug#64869] [PATCH 0/2] Add pipx package manager for Python applications Wojtek Kosior via Guix-patches via
2023-07-26 9:09 ` [bug#64869] [PATCH 1/2] gnu: Add python-userpath Wojtek Kosior via Guix-patches via
2023-07-26 9:09 ` Wojtek Kosior via Guix-patches via [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ce0bdf79a0aa89760d2e7590a3a9702a51ddec31.1690360848.git.koszko@koszko.org \
--to=guix-patches@gnu.org \
--cc=64869@debbugs.gnu.org \
--cc=jgart@dismail.de \
--cc=koszko@koszko.org \
--cc=lars@6xq.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).