mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 03:50:45 +02:00
gnu: python2-cliapp: Add Python 3 variant.
* gnu/packages/python-xyz.scm (python2-cliapp): Rename to ... (python-cliapp): ... this. [name, native-inputs, propagated-inputs]: Adjust accordingly. [arguments]: Disable tests. [description]: Remove mentions of Python version and add markup. (python2-cliapp): Use PACKAGE-WITH-PYTHON2.
This commit is contained in:
parent
350833554b
commit
0d0e3bee03
1 changed files with 14 additions and 22 deletions
|
@ -16859,9 +16859,9 @@ protocols.")
|
||||||
(define-public python2-attrs-bootstrap
|
(define-public python2-attrs-bootstrap
|
||||||
(package-with-python2 python-attrs-bootstrap))
|
(package-with-python2 python-attrs-bootstrap))
|
||||||
|
|
||||||
(define-public python2-cliapp
|
(define-public python-cliapp
|
||||||
(package
|
(package
|
||||||
(name "python2-cliapp")
|
(name "python-cliapp")
|
||||||
(version "1.20180812.1")
|
(version "1.20180812.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
|
@ -16874,32 +16874,24 @@ protocols.")
|
||||||
"1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x"))))
|
"1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:python ,python-2
|
`(;; XXX: The tests only do style and coverage checks, which
|
||||||
#:phases
|
;; fails due to deprecation warnings, etc.
|
||||||
(modify-phases %standard-phases
|
#:tests? #f))
|
||||||
;; check phase needs to be run before the build phase. If not,
|
|
||||||
;; coverage-test-runner looks for tests for the built source files,
|
|
||||||
;; and fails.
|
|
||||||
(delete 'check)
|
|
||||||
(add-before 'build 'check
|
|
||||||
(lambda _
|
|
||||||
;; Disable python3 tests
|
|
||||||
(substitute* "check"
|
|
||||||
(("python3") "# python3"))
|
|
||||||
(invoke "./check"))))))
|
|
||||||
(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)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python2-pyaml" ,python2-pyaml)))
|
`(("python-pyaml" ,python-pyaml)))
|
||||||
(home-page "https://liw.fi/cliapp/")
|
(home-page "https://liw.fi/cliapp/")
|
||||||
(synopsis "Python framework for command line programs")
|
(synopsis "Python framework for command line programs")
|
||||||
(description "@code{python2-cliapp} is a python framework for
|
(description "@code{cliapp} is a Python framework for command line
|
||||||
command line programs. It contains the typical stuff such programs
|
programs. It contains the typical stuff such programs need to do, such
|
||||||
need to do, such as parsing the command line for options, and
|
as parsing the command line for options, and iterating over input files.")
|
||||||
iterating over input files.")
|
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
|
(define-public python2-cliapp
|
||||||
|
(package-with-python2 python-cliapp))
|
||||||
|
|
||||||
(define-public python2-ttystatus
|
(define-public python2-ttystatus
|
||||||
(package
|
(package
|
||||||
(name "python2-ttystatus")
|
(name "python2-ttystatus")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue