gnu: python-prompt-toolkit: Update to 3.0.51.

* gnu/packages/python-xyz.scm (python-prompt-toolkit): Update to 3.0.51.
  [build-system]: Use pyproject.
  [arguments] <phases>: Use default 'check; add 'pre-check.
  [native-inputs]: Add python-setuptools.

Change-Id: If7f626ff2ef9a564968a969810d05e6767d6d17b
This commit is contained in:
Sharlatan Hellseher 2025-08-09 17:19:12 +01:00
parent 3ad5d0c98a
commit a9f3675c8c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -24109,28 +24109,28 @@ environment variables in YAML files.")
(define-public python-prompt-toolkit (define-public python-prompt-toolkit
(package (package
(name "python-prompt-toolkit") (name "python-prompt-toolkit")
(version "3.0.43") (version "3.0.51")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "prompt_toolkit" version)) (uri (pypi-uri "prompt_toolkit" version))
(sha256 (sha256
(base32 "0zgzn02ffc9njpz0pfsin30nwmm3754cig20l1jvqv0h4spvf9rm")))) (base32 "1valgcf324yy0sf7rrbm2ivc4a65n8gvnj0vdz491z177cp1c6lk"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(replace 'check #~(modify-phases %standard-phases
(lambda* (#:key tests? #:allow-other-keys) (add-before 'check 'pre-check
(when tests? (lambda _
;; HOME is needed for the test ;; HOME is needed for the test
;; "test_pathcompleter_can_expanduser". ;; "test_pathcompleter_can_expanduser".
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp"))))))
(invoke "pytest" "-vv"))))))) (native-inputs
(list python-pytest
python-setuptools))
(propagated-inputs (propagated-inputs
(list python-wcwidth)) (list python-wcwidth))
(native-inputs
(list python-pytest))
(home-page "https://github.com/prompt-toolkit/python-prompt-toolkit") (home-page "https://github.com/prompt-toolkit/python-prompt-toolkit")
(synopsis "Library for building command line interfaces in Python") (synopsis "Library for building command line interfaces in Python")
(description (description