gnu: python2-ttystatus: Add Python 3 variant.

* gnu/packages/python-xyz.scm (python2-ttystatus): Rename to ...
(python-ttystatus): ... this.
[name, native-inputs, arguments]: Adjust accordingly.
[descriptions]: Remove mentions of Python version and add markup.
(python2-ttystatus): Use PACKAGE-WITH-PYTHON2.
This commit is contained in:
Marius Bakke 2021-05-22 14:38:31 +02:00
parent 0d0e3bee03
commit 10c8aa039d
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -16892,9 +16892,9 @@ (define-public python-cliapp
(define-public python2-cliapp (define-public python2-cliapp
(package-with-python2 python-cliapp)) (package-with-python2 python-cliapp))
(define-public python2-ttystatus (define-public python-ttystatus
(package (package
(name "python2-ttystatus") (name "python-ttystatus")
(version "0.38") (version "0.38")
(source (source
(origin (origin
@ -16908,11 +16908,10 @@ (define-public python2-ttystatus
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs (native-inputs
`(("python2-coverage-test-runner" ,python2-coverage-test-runner) `(("python-coverage-test-runner" ,python-coverage-test-runner)
("python2-pep8" ,python2-pep8))) ("python-pep8" ,python-pep8)))
(arguments (arguments
`(#:python ,python-2 `(#:phases
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
;; check phase needs to be run before the build phase. If not, ;; check phase needs to be run before the build phase. If not,
;; coverage-test-runner looks for tests for the built source files, ;; coverage-test-runner looks for tests for the built source files,
@ -16923,13 +16922,15 @@ (define-public python2-ttystatus
(home-page "https://liw.fi/ttystatus/") (home-page "https://liw.fi/ttystatus/")
(synopsis "Python library for showing progress reporting and (synopsis "Python library for showing progress reporting and
status updates on terminals") status updates on terminals")
(description "@code{python2-ttystatus} is a python library for (description "@code{ttystatus} is a Python library for showing progress
showing progress reporting and status updates on terminals, for reporting and status updates on terminals, for command line programs.
command line programs. Output is automatically adapted to the width Output is automatically adapted to the width of the terminal: truncated
of the terminal: truncated if it does not fit, and resized if the if it does not fit, and resized if the terminal size changes.")
terminal size changes.")
(license license:gpl3+))) (license license:gpl3+)))
(define-public python2-ttystatus
(package-with-python2 python-ttystatus))
(define-public python2-tracing (define-public python2-tracing
(package (package
(name "python2-tracing") (name "python2-tracing")