summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-08-02 12:14:44 -0300
committerVinicius Monego <monego@posteo.net>2025-08-04 21:34:23 -0300
commit853be726472b6cec079b037be6030be6464b8a18 (patch)
tree3991b3d5d7a8ebefa21d19d14dd3cf889d8780a2 /gnu/packages/python-xyz.scm
parentc48521a40b64797e21003bdb1cc625c2ff0802e1 (diff)
gnu: python-typer: Update to 0.16.0.
* gnu/packages/python-xyz.scm (python-typer): Update to 0.16.0. [source, home-page]: Follow redirect. [arguments]: Remove '#:test-flags', enabling all tests. <#:phases>: Delete the 'patch-shell-reference' phase. [native-inputs]: Remove python-flit. Add python-pdm-backend. Move python-rich, python-shellingham to ... [propagated-inputs]: ... here. Add python-typing-extensions. Change-Id: I64232bee0bbeb533286d6ae8a14a680ceb825d75
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm34
1 files changed, 11 insertions, 23 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c9e7f0e731..01d1dfa383 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -28640,35 +28640,21 @@ source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
(define-public python-typer
(package
(name "python-typer")
- (version "0.6.1")
+ (version "0.16.0")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/tiangolo/typer")
+ (url "https://github.com/fastapi/typer")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1knv353qhkl2imav3jfp6bgq47m8wkkqhq1dzmqg2sv8rsy7zgl7"))))
+ (base32 "1axd3840b2vipfp9l36cnh5ipbsladizmjadgsnpnk502qily7sq"))))
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags
- '(let ((disabled-tests (list "test_show_completion"
- "test_install_completion")))
- (list "-k" (string-append "not "
- (string-join disabled-tests
- " and not "))))
#:phases
#~(modify-phases %standard-phases
- ;; Unfortunately, this doesn't seem to be enough to fix these two
- ;; tests, but we'll patch this anyway.
- (add-after 'unpack 'patch-shell-reference
- (lambda _
- (substitute* "tests/test_completion/test_completion.py"
- (("\"bash\"") (string-append "\"" (which "bash") "\""))
- (("\"/bin/bash\"")
- (string-append "\"" (which "bash") "\"")))))
(add-before 'check 'pre-check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
@@ -28676,12 +28662,14 @@ source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
;; This is for completion tests
(with-output-to-file "/tmp/.bashrc"
(lambda _ (display "# dummy")))))))))
- (propagated-inputs
- (list python-click))
- (native-inputs
- (list python-coverage python-flit python-pytest python-rich
- python-shellingham))
- (home-page "https://github.com/tiangolo/typer")
+ (propagated-inputs (list python-click
+ python-rich
+ python-shellingham
+ python-typing-extensions))
+ (native-inputs (list python-coverage ; this is required in tests
+ python-pdm-backend
+ python-pytest))
+ (home-page "https://github.com/fastapi/typer")
(synopsis "Typer builds CLI based on Python type hints")
(description
"Typer is a library for building CLI applications. It's based on Python