gnu: python-coverage-test-runner: Add Python 3 variant.
* gnu/packages/check.scm (python2-coverage-test-runner): Rename to ... (python-coverage-test-runner): ... this. [arguments, propagated-inputs]: Adjust for Python 3. (python2-coverage-test-runner): Use PACKAGE-WITH-PYTHON2.master
parent
de47177400
commit
350833554b
|
@ -25,7 +25,7 @@
|
||||||
;;; Copyright © 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
|
;;; Copyright © 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
|
||||||
;;; Copyright © 2017 Nikita <nikita@n0.is>
|
;;; Copyright © 2017 Nikita <nikita@n0.is>
|
||||||
;;; Copyright © 2015, 2017, 2018, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2015, 2017, 2018, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;; Copyright © 2017, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
||||||
;;; Copyright © 2019, 2021 Pierre Langlois <pierre.langlois@gmx.com>
|
;;; Copyright © 2019, 2021 Pierre Langlois <pierre.langlois@gmx.com>
|
||||||
|
@ -2131,9 +2131,9 @@ failures.")
|
||||||
(define-public python2-pytest-flakes
|
(define-public python2-pytest-flakes
|
||||||
(package-with-python2 python-pytest-flakes))
|
(package-with-python2 python-pytest-flakes))
|
||||||
|
|
||||||
(define-public python2-coverage-test-runner
|
(define-public python-coverage-test-runner
|
||||||
(package
|
(package
|
||||||
(name "python2-coverage-test-runner")
|
(name "python-coverage-test-runner")
|
||||||
(version "1.15")
|
(version "1.15")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
|
@ -2147,14 +2147,13 @@ failures.")
|
||||||
"1kjjb9llckycnfxag8zcvqsn4z1s3dwyw6b1n0avxydihgf30rny"))))
|
"1kjjb9llckycnfxag8zcvqsn4z1s3dwyw6b1n0avxydihgf30rny"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:python ,python-2
|
`(#:phases
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "./testrun"))))))
|
(invoke "./testrun"))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python2-coverage" ,python2-coverage)))
|
`(("python-coverage" ,python-coverage)))
|
||||||
(home-page "https://liw.fi/coverage-test-runner/")
|
(home-page "https://liw.fi/coverage-test-runner/")
|
||||||
(synopsis "Python module for running unit tests")
|
(synopsis "Python module for running unit tests")
|
||||||
(description "@code{CoverageTestRunner} is a python module for running
|
(description "@code{CoverageTestRunner} is a python module for running
|
||||||
|
@ -2162,6 +2161,9 @@ unit tests and failing them if the unit test module does not exercise all
|
||||||
statements in the module it tests.")
|
statements in the module it tests.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
|
(define-public python2-coverage-test-runner
|
||||||
|
(package-with-python2 python-coverage-test-runner))
|
||||||
|
|
||||||
(define-public python-pylint
|
(define-public python-pylint
|
||||||
(package
|
(package
|
||||||
(name "python-pylint")
|
(name "python-pylint")
|
||||||
|
|
Reference in New Issue