diff options
author | Marius Bakke <marius@gnu.org> | 2021-05-22 14:31:37 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2021-05-22 16:04:59 +0200 |
commit | 350833554bddf309aaba1599ff3e43085b10c10e (patch) | |
tree | 3a89dc61bfb8df9cd399a91cc9101f6ac7f67385 /gnu | |
parent | de47177400d475b042439d99df6d53beda20f6d1 (diff) | |
download | guix-350833554bddf309aaba1599ff3e43085b10c10e.tar.gz |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/check.scm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 6641a0de58..f0f978ab4e 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -25,7 +25,7 @@ ;;; Copyright © 2017, 2019 Kei Kebreau <kkebreau@posteo.net> ;;; Copyright © 2017 Nikita <nikita@n0.is> ;;; 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 © 2018 Fis Trivial <ybbs.daans@hotmail.com> ;;; Copyright © 2019, 2021 Pierre Langlois <pierre.langlois@gmx.com> @@ -2131,9 +2131,9 @@ failures.") (define-public python2-pytest-flakes (package-with-python2 python-pytest-flakes)) -(define-public python2-coverage-test-runner +(define-public python-coverage-test-runner (package - (name "python2-coverage-test-runner") + (name "python-coverage-test-runner") (version "1.15") (source (origin @@ -2147,14 +2147,13 @@ failures.") "1kjjb9llckycnfxag8zcvqsn4z1s3dwyw6b1n0avxydihgf30rny")))) (build-system python-build-system) (arguments - `(#:python ,python-2 - #:phases + `(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "./testrun")))))) (propagated-inputs - `(("python2-coverage" ,python2-coverage))) + `(("python-coverage" ,python-coverage))) (home-page "https://liw.fi/coverage-test-runner/") (synopsis "Python module for running unit tests") (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.") (license license:gpl3+))) +(define-public python2-coverage-test-runner + (package-with-python2 python-coverage-test-runner)) + (define-public python-pylint (package (name "python-pylint") |