* [bug#57101] [PATCH] gnu: python-typer: Update to 0.6.1.
@ 2022-08-10 8:12 Tanguy Le Carrour
2022-08-12 8:38 ` bug#57101: " Mathieu Othacehe
0 siblings, 1 reply; 3+ messages in thread
From: Tanguy Le Carrour @ 2022-08-10 8:12 UTC (permalink / raw)
To: 57101; +Cc: Tanguy Le Carrour
* gnu/packages/python-xyz.scm (python-typer): Update to 0.6.1.
[source]: Use GIT-FETCH.
[arguments]: Build from source with flit.
[native-inputs]: Add python-flit and python-rich.
---
gnu/packages/python-xyz.scm | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d18959889e..196659417c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21437,15 +21437,16 @@ (define-public python-typed-ast
(define-public python-typer
(package
(name "python-typer")
- (version "0.3.2")
+ (version "0.6.1")
(source
(origin
- ;; Building `python-typer` from the git repository requires the `flit-core`
- ;; Python package that is not installed by `python-flit`.
- (method url-fetch)
- (uri (pypi-uri "typer" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tiangolo/typer")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal"))))
+ (base32 "1knv353qhkl2imav3jfp6bgq47m8wkkqhq1dzmqg2sv8rsy7zgl7"))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -21457,6 +21458,18 @@ (define-public python-typer
(substitute* "tests/test_completion/test_completion.py"
(("\"bash\"") (string-append "\"" (which "bash") "\""))
(("\"/bin/bash\"") (string-append "\"" (which "bash") "\"")))))
+ (replace 'build
+ (lambda _
+ (invoke "flit" "build")))
+ (replace 'install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (let ((out (assoc-ref outputs "out")))
+ (for-each (lambda (wheel)
+ (format #true wheel)
+ (invoke "python" "-m" "pip" "install"
+ wheel (string-append "--prefix=" out)))
+ (find-files "dist" "\\.whl$")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
@@ -21478,7 +21491,8 @@ (define-public python-typer
(propagated-inputs
(list python-click))
(native-inputs
- (list python-coverage python-pytest python-shellingham))
+ (list python-coverage python-flit python-pytest python-rich
+ python-shellingham))
(home-page "https://github.com/tiangolo/typer")
(synopsis
"Typer builds CLI based on Python type hints")
--
2.37.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#57101: [PATCH] gnu: python-typer: Update to 0.6.1.
2022-08-10 8:12 [bug#57101] [PATCH] gnu: python-typer: Update to 0.6.1 Tanguy Le Carrour
@ 2022-08-12 8:38 ` Mathieu Othacehe
2022-08-12 9:09 ` [bug#57101] " Tanguy LE CARROUR
0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Othacehe @ 2022-08-12 8:38 UTC (permalink / raw)
To: Tanguy Le Carrour; +Cc: 57101-done
> * gnu/packages/python-xyz.scm (python-typer): Update to 0.6.1.
> [source]: Use GIT-FETCH.
> [arguments]: Build from source with flit.
> [native-inputs]: Add python-flit and python-rich.
Pushed, thanks! I also introduced gexps as a follow-up.
Mathieu
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#57101] [PATCH] gnu: python-typer: Update to 0.6.1.
2022-08-12 8:38 ` bug#57101: " Mathieu Othacehe
@ 2022-08-12 9:09 ` Tanguy LE CARROUR
0 siblings, 0 replies; 3+ messages in thread
From: Tanguy LE CARROUR @ 2022-08-12 9:09 UTC (permalink / raw)
To: Mathieu Othacehe; +Cc: 57101-done
Hi Mathieu,
Quoting Mathieu Othacehe (2022-08-12 10:38:21)
>
> > * gnu/packages/python-xyz.scm (python-typer): Update to 0.6.1.
> > [source]: Use GIT-FETCH.
> > [arguments]: Build from source with flit.
> > [native-inputs]: Add python-flit and python-rich.
>
> Pushed, thanks! I also introduced gexps as a follow-up.
Thanks!
--
Tanguy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-12 9:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-10 8:12 [bug#57101] [PATCH] gnu: python-typer: Update to 0.6.1 Tanguy Le Carrour
2022-08-12 8:38 ` bug#57101: " Mathieu Othacehe
2022-08-12 9:09 ` [bug#57101] " Tanguy LE CARROUR
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).