mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-17 00:18:16 -05:00
gnu: cmdtest: Update to 0.32-14-gcdfe14e.
* gnu/packages/check.scm (cmdtest): Update to 0.32-14-gcdfe14e. [source]: Switch to GIT-FETCH. [arguments]: Remove #:phases and #:python. Add #:tests?. [native-inputs]: Change from PYTHON2-CLIAPP, PYTHON2-MARKDOWN, and PYTHON-TTYSTATUS to their respective Python 3 variants.
This commit is contained in:
parent
10c8aa039d
commit
0bdb7d3841
1 changed files with 13 additions and 27 deletions
|
@ -423,39 +423,25 @@ (define-public catch-framework2
|
||||||
(define-public cmdtest
|
(define-public cmdtest
|
||||||
(package
|
(package
|
||||||
(name "cmdtest")
|
(name "cmdtest")
|
||||||
(version "0.32")
|
;; Use the latest commit (from 2019) in order to get Python 3 support.
|
||||||
|
(version "0.32-14-gcdfe14e")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "http://git.liw.fi/cmdtest/snapshot/"
|
(uri (git-reference
|
||||||
name "-" version ".tar.gz"))
|
(url "git://git.liw.fi/cmdtest/")
|
||||||
|
(commit version)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1jmfiyrrqmpvwdb273bkb8hjaf4rwx9njblx29pmr7giyahskwi5"))))
|
"1yhcwsqcpckkq5kw3h07k0xg6infyiyzq9ni3nqphrzxis7hxjf1"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments `(#:tests? #f)) ;requires Python 2!
|
||||||
`(#:python ,python-2
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
;; check phase needs to be run before the build phase. If not, the
|
|
||||||
;; coverage test runner looks for tests for the built source files,
|
|
||||||
;; and fails.
|
|
||||||
(delete 'check)
|
|
||||||
(add-before 'build 'check
|
|
||||||
(lambda _
|
|
||||||
(substitute* "yarn"
|
|
||||||
(("/bin/sh") (which "sh")))
|
|
||||||
;; yarn uses python2-ttystatus to print messages.
|
|
||||||
;; python2-ttystatus requires /dev/tty which is not present in
|
|
||||||
;; the build environment. Hence assuming-failure test fails.
|
|
||||||
(delete-file "yarn.tests/assuming-failure.script")
|
|
||||||
(delete-file "yarn.tests/assuming-failure.stdout")
|
|
||||||
(invoke "python" "setup.py" "check"))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python2-coverage-test-runner" ,python2-coverage-test-runner)))
|
`(("python-coverage-test-runner" ,python-coverage-test-runner)
|
||||||
|
("python" ,python)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python2-cliapp" ,python2-cliapp)
|
`(("python-cliapp" ,python-cliapp)
|
||||||
("python2-markdown" ,python2-markdown)
|
("python-markdown" ,python-markdown)
|
||||||
("python2-ttystatus" ,python2-ttystatus)))
|
("python-ttystatus" ,python-ttystatus)))
|
||||||
(home-page "https://liw.fi/cmdtest/")
|
(home-page "https://liw.fi/cmdtest/")
|
||||||
(synopsis "Black box Unix program tester")
|
(synopsis "Black box Unix program tester")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue