2013-01-06 00:47:50 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
;;; Copyright © 2014 David Thompson <davet@gnu.org>
|
2015-03-02 10:24:13 +01:00
|
|
|
|
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
;;; Copyright © 2014, 2015 Eric Bavier <bavier@member.fsf.org>
|
|
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
|
|
|
|
;;; Copyright © 2015, 2017 Cyril Roelandt <tipecaml@gmail.com>
|
|
|
|
|
;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
|
2015-05-03 12:53:38 +02:00
|
|
|
|
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
|
|
|
|
|
;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
|
|
|
|
|
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
|
|
|
|
|
;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
|
2016-03-02 14:42:16 +01:00
|
|
|
|
;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
|
2017-11-18 11:30:01 +01:00
|
|
|
|
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
|
|
|
|
|
;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
|
2016-06-05 23:03:56 +02:00
|
|
|
|
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
|
|
|
|
;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
|
|
|
|
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
|
|
|
|
|
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
|
|
|
|
|
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
|
|
|
|
|
;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
|
2017-05-06 22:02:18 +02:00
|
|
|
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
2017-08-28 04:27:56 +02:00
|
|
|
|
;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
|
2017-09-04 13:59:46 +02:00
|
|
|
|
;;; Copyright © 2017 ng0 <ng0@infotropique.org>
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
|
|
|
|
|
;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
|
2017-11-18 11:30:01 +01:00
|
|
|
|
;;; Copyright © 2017 Ludovic Courtès <ludo@gnu.org>
|
2018-01-08 04:04:30 +01:00
|
|
|
|
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
2012-12-16 21:14:02 +01:00
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; This file is part of GNU Guix.
|
2012-12-16 21:14:02 +01:00
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-12-16 21:14:02 +01:00
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
2012-12-16 21:14:02 +01:00
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
2012-12-16 21:14:02 +01:00
|
|
|
|
|
2013-01-18 01:06:24 +01:00
|
|
|
|
(define-module (gnu packages check)
|
2013-01-18 01:06:47 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2015-03-10 10:50:22 +01:00
|
|
|
|
#:use-module (gnu packages autotools)
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
#:use-module (gnu packages bash)
|
|
|
|
|
#:use-module (gnu packages compression)
|
2016-06-05 23:03:56 +02:00
|
|
|
|
#:use-module (gnu packages python)
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
#:use-module (gnu packages python-web)
|
gnu: Move date/time packages from python.scm to time.scm.
* gnu/packages/python.scm (python-pytz, python2-pytz, python-dateutil,
python2-dateutil, python-parsedatetime, python2-parsedatetime,
python-tzlocal, python-isodate, python2-isodate, python-iso8601,
python2-iso8601, python-monotonic, python2-monotonic, python-pyrfc3339,
python2-pyrfc3339, python-arrow, python2-arrow, python-aniso8601,
python2-aniso8601): Move from here...
* gnu/packages/time.scm: ...to here.
* gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/django.scm,
gnu/packages/ebook.scm,
gnu/packages/gnome.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/mail.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/tls.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm: Adjust accordingly.
2017-11-18 11:58:44 +01:00
|
|
|
|
#:use-module (gnu packages time)
|
2016-10-10 14:13:12 +02:00
|
|
|
|
#:use-module (guix utils)
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2012-12-16 21:14:02 +01:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2015-03-27 22:12:01 +01:00
|
|
|
|
#:use-module (guix git-download)
|
2015-12-21 10:11:01 +01:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2015-03-27 22:12:01 +01:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2018-01-21 11:45:33 +01:00
|
|
|
|
#:use-module (guix build-system go)
|
2017-07-06 19:58:35 +02:00
|
|
|
|
#:use-module (guix build-system python)
|
2015-03-27 22:12:01 +01:00
|
|
|
|
#:use-module (guix build-system trivial))
|
2012-12-16 21:14:02 +01:00
|
|
|
|
|
|
|
|
|
(define-public check
|
|
|
|
|
(package
|
|
|
|
|
(name "check")
|
2016-03-10 19:38:13 +01:00
|
|
|
|
(version "0.10.0")
|
2012-12-16 21:14:02 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2016-03-10 19:38:13 +01:00
|
|
|
|
(uri (string-append "https://github.com/libcheck/check/files/71408/"
|
|
|
|
|
"/check-" version ".tar.gz"))
|
2012-12-16 21:14:02 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-03-10 19:38:13 +01:00
|
|
|
|
"0lhhywf5nxl3dd0hdakra3aasl590756c9kmvyifb3vgm9k0gxgm"))))
|
2012-12-16 21:14:02 +01:00
|
|
|
|
(build-system gnu-build-system)
|
2016-03-10 19:38:13 +01:00
|
|
|
|
(home-page "https://libcheck.github.io/check/")
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
|
(synopsis "Unit test framework for C")
|
2012-12-16 21:14:02 +01:00
|
|
|
|
(description
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
|
"Check is a unit testing framework for C. It features a simple
|
2012-12-16 21:14:02 +01:00
|
|
|
|
interface for defining unit tests, putting little in the way of the
|
|
|
|
|
developer. Tests are run in a separate address space, so Check can
|
|
|
|
|
catch both assertion failures and code errors that cause segmentation
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
|
faults or other signals. The output from unit tests can be used within
|
2012-12-16 21:14:02 +01:00
|
|
|
|
source code editors and IDEs.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:lgpl2.1+)))
|
2014-10-20 21:37:16 +02:00
|
|
|
|
|
2017-10-08 14:18:26 +02:00
|
|
|
|
;; XXX: Some packages require this newer version. Incorporate this
|
|
|
|
|
;; into the main 'check' package during the next rebuild cycle.
|
|
|
|
|
(define-public check-0.11.0
|
|
|
|
|
(package
|
|
|
|
|
(inherit check)
|
|
|
|
|
(version "0.11.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/libcheck/check/releases"
|
|
|
|
|
"/download/" version "/check-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"05jn1pgb7hqb937xky2147nnq3r4qy5wwr79rddpax3bms5a9xr4"))))))
|
|
|
|
|
|
2015-03-10 10:50:22 +01:00
|
|
|
|
(define-public cunit
|
|
|
|
|
(package
|
|
|
|
|
(name "cunit")
|
|
|
|
|
(version "2.1-3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/cunit/CUnit/"
|
|
|
|
|
version "/CUnit-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"057j82da9vv4li4z5ri3227ybd18nzyq81f6gsvhifs5z0vr3cpm"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments '(#:phases
|
2017-08-10 17:24:21 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'autoconf
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "autoreconf" "-vfi")))))))
|
2015-03-10 10:50:22 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("automake" ,automake)
|
|
|
|
|
("autoconf" ,autoconf)
|
|
|
|
|
("libtool" ,libtool)))
|
|
|
|
|
(home-page "http://cunit.sourceforge.net/")
|
|
|
|
|
(synopsis "Automated testing framework for C")
|
|
|
|
|
(description
|
|
|
|
|
"CUnit is a lightweight system for writing, administering, and running
|
|
|
|
|
unit tests in C. It provides C programmers with basic testing functionality
|
|
|
|
|
with a flexible variety of user interfaces.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:gpl2+)))
|
2015-03-10 10:50:22 +01:00
|
|
|
|
|
2014-10-20 21:37:16 +02:00
|
|
|
|
(define-public cppunit
|
|
|
|
|
(package
|
|
|
|
|
(name "cppunit")
|
2016-03-10 20:24:32 +01:00
|
|
|
|
(version "1.13.2")
|
2014-10-20 21:37:16 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-03-10 20:24:32 +01:00
|
|
|
|
(uri (string-append "http://dev-www.libreoffice.org/src/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
2014-10-20 21:37:16 +02:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-03-10 20:24:32 +01:00
|
|
|
|
"17s2kzmkw3kfjhpp72rfppyd7syr7bdq5s69syj2nvrlwd3d4irz"))))
|
2015-05-03 12:53:38 +02:00
|
|
|
|
;; Explicitly link with libdl. This is expected to be done by packages
|
|
|
|
|
;; relying on cppunit for their tests. However, not all of them do.
|
|
|
|
|
;; If we added the linker flag to such packages, we would pollute all
|
|
|
|
|
;; binaries, not only those used for testing.
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags '("LDFLAGS=-ldl")))
|
2014-10-20 21:37:16 +02:00
|
|
|
|
(build-system gnu-build-system)
|
2016-03-10 20:24:32 +01:00
|
|
|
|
(home-page "https://wiki.freedesktop.org/www/Software/cppunit/")
|
2014-10-20 21:37:16 +02:00
|
|
|
|
(synopsis "Unit testing framework for C++")
|
|
|
|
|
(description "CppUnit is the C++ port of the famous JUnit framework for
|
2014-11-07 14:04:58 +01:00
|
|
|
|
unit testing. Test output is in XML for automatic testing and GUI based for
|
2014-10-20 21:37:16 +02:00
|
|
|
|
supervised tests.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:lgpl2.1))) ; no copyright notices. LGPL2.1 is in the tarball
|
2015-03-27 22:12:01 +01:00
|
|
|
|
|
|
|
|
|
(define-public catch-framework
|
|
|
|
|
(package
|
|
|
|
|
(name "catch")
|
2016-03-10 20:41:24 +01:00
|
|
|
|
(version "1.3.5") ;Sub-minor is the build number
|
2015-03-27 22:12:01 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/philsquared/Catch")
|
2015-06-03 22:53:56 +02:00
|
|
|
|
;; Semi-arbitrary.
|
2016-03-10 20:41:24 +01:00
|
|
|
|
(commit "ae5ee2cf63d6d67bd1369b512d2a7b60b571c907")))
|
2015-03-27 22:12:01 +01:00
|
|
|
|
(file-name (string-append name "-" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-03-10 20:41:24 +01:00
|
|
|
|
"1yfb3lxv929szqy1nw9xw3d45wzkppziqshkjxvrb1fdmf46x564"))))
|
2015-03-27 22:12:01 +01:00
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
|
#:builder (begin
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
(let* ((source (assoc-ref %build-inputs "source"))
|
|
|
|
|
(output (assoc-ref %outputs "out"))
|
|
|
|
|
(incdir (string-append output "/include"))
|
|
|
|
|
(docdir (string-append output "/share/doc/catch-"
|
|
|
|
|
,version)))
|
|
|
|
|
(begin
|
|
|
|
|
(for-each mkdir-p (list incdir docdir))
|
gnu: Use 'install-file' instead of 'mkdir-p' and 'copy-file' in obvious cases.
* gnu/packages/bioinformatics.scm (bedtools, bowtie, bwa, hisat, samtools,
plink, star): Use 'install-file' instead of 'mkdir-p' + 'copy-file'.
* gnu/packages/check.scm (catch-framework): Likewise.
* gnu/packages/code.scm (global): Likewise.
* gnu/packages/emacs.scm (magit-svn, haskell-mode, emacs-pdf-tools):
Likewise.
* gnu/packages/engineering.scm (fastcap, fasthenry): Likewise.
* gnu/packages/gnuzilla.scm (nss): Likewise.
* gnu/packages/guile.scm (guile-minikanren): Likewise.
* gnu/packages/java.scm (swt): Likewise.
* gnu/packages/make-bootstrap.scm (%static-binaries): Likewise.
* gnu/packages/maths.scm (lpsolve): Likewise.
* gnu/packages/mp3.scm (mpc123): Likewise.
* gnu/packages/ninja.scm (ninja): Likewise.
* gnu/packages/python.scm (python-numpy, python-pyparsing): Likewise.
* gnu/packages/screen.scm (dtach): Likewise.
* gnu/packages/synergy.scm (synergy): Likewise.
* gnu/packages/textutils.scm (utf8proc): Likewise.
* gnu/packages/version-control.scm (git-test-sequence): Likewise.
* gnu/packages/wicd.scm (wicd): Likewise.
2015-08-28 22:22:22 +02:00
|
|
|
|
(install-file (string-append source
|
2015-03-27 22:12:01 +01:00
|
|
|
|
"/single_include/catch.hpp")
|
gnu: Use 'install-file' instead of 'mkdir-p' and 'copy-file' in obvious cases.
* gnu/packages/bioinformatics.scm (bedtools, bowtie, bwa, hisat, samtools,
plink, star): Use 'install-file' instead of 'mkdir-p' + 'copy-file'.
* gnu/packages/check.scm (catch-framework): Likewise.
* gnu/packages/code.scm (global): Likewise.
* gnu/packages/emacs.scm (magit-svn, haskell-mode, emacs-pdf-tools):
Likewise.
* gnu/packages/engineering.scm (fastcap, fasthenry): Likewise.
* gnu/packages/gnuzilla.scm (nss): Likewise.
* gnu/packages/guile.scm (guile-minikanren): Likewise.
* gnu/packages/java.scm (swt): Likewise.
* gnu/packages/make-bootstrap.scm (%static-binaries): Likewise.
* gnu/packages/maths.scm (lpsolve): Likewise.
* gnu/packages/mp3.scm (mpc123): Likewise.
* gnu/packages/ninja.scm (ninja): Likewise.
* gnu/packages/python.scm (python-numpy, python-pyparsing): Likewise.
* gnu/packages/screen.scm (dtach): Likewise.
* gnu/packages/synergy.scm (synergy): Likewise.
* gnu/packages/textutils.scm (utf8proc): Likewise.
* gnu/packages/version-control.scm (git-test-sequence): Likewise.
* gnu/packages/wicd.scm (wicd): Likewise.
2015-08-28 22:22:22 +02:00
|
|
|
|
incdir)
|
2015-03-27 22:12:01 +01:00
|
|
|
|
(copy-recursively (string-append source "/docs")
|
|
|
|
|
docdir))))))
|
|
|
|
|
(home-page "http://catch-lib.net/")
|
|
|
|
|
(synopsis "Automated test framework for C++ and Objective-C")
|
|
|
|
|
(description
|
|
|
|
|
"Catch stands for C++ Automated Test Cases in Headers and is a
|
|
|
|
|
multi-paradigm automated test framework for C++ and Objective-C.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:boost1.0)))
|
2015-12-21 10:11:01 +01:00
|
|
|
|
|
2017-07-06 19:58:35 +02:00
|
|
|
|
(define-public cmdtest
|
|
|
|
|
(package
|
|
|
|
|
(name "cmdtest")
|
|
|
|
|
(version "0.29")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://git.liw.fi/cmdtest/snapshot/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1i6gi4yp4qqx1liax098c7nwdb24pghh11xqlrcs7lnhh079rqhb"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#: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")
|
|
|
|
|
(zero? (system* "python" "setup.py" "check")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-coverage-test-runner" ,python2-coverage-test-runner)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-cliapp" ,python2-cliapp)
|
|
|
|
|
("python2-markdown" ,python2-markdown)
|
|
|
|
|
("python2-ttystatus" ,python2-ttystatus)))
|
|
|
|
|
(home-page "https://liw.fi/cmdtest/")
|
|
|
|
|
(synopsis "Black box Unix program tester")
|
|
|
|
|
(description
|
|
|
|
|
"@code{cmdtest} black box tests Unix command line tools. Roughly, it is
|
|
|
|
|
given a command line and input files, and the expected output, and it verifies
|
|
|
|
|
that the command line produces the expected output. If not, it reports a
|
|
|
|
|
problem, and shows the differences.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:gpl3+)))
|
2017-07-06 19:58:35 +02:00
|
|
|
|
|
2015-12-21 10:11:01 +01:00
|
|
|
|
(define-public cmocka
|
|
|
|
|
(package
|
|
|
|
|
(name "cmocka")
|
2017-07-23 14:21:07 +02:00
|
|
|
|
(version "1.1.1")
|
2015-12-21 10:11:01 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-10-10 14:13:12 +02:00
|
|
|
|
(uri (string-append "https://cmocka.org/files/"
|
|
|
|
|
(version-major+minor version) "/cmocka-"
|
2015-12-21 10:11:01 +01:00
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-07-23 14:21:07 +02:00
|
|
|
|
"1283zi9qf5613g8iadm1fxmjh4rzxqd5np2j3lcpgairf25g8bph"))))
|
2015-12-21 10:11:01 +01:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; No test target
|
|
|
|
|
(home-page "https://cmocka.org/")
|
|
|
|
|
(synopsis "Unit testing framework for C")
|
|
|
|
|
(description "Cmocka is a unit testing framework for C with support for
|
|
|
|
|
mock objects. It only requires the standard C library, and works with
|
|
|
|
|
different compilers. Cmocka supports several different message output formats
|
|
|
|
|
like Test Anything Protocol, Subunit, xUnit XML or the original cmockery output
|
|
|
|
|
format.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:asl2.0)))
|
2016-03-02 14:42:16 +01:00
|
|
|
|
|
|
|
|
|
(define-public cppcheck
|
|
|
|
|
(package
|
|
|
|
|
(name "cppcheck")
|
2017-10-19 14:11:47 +02:00
|
|
|
|
(version "1.81")
|
2016-03-02 14:42:16 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/danmar/cppcheck/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
2017-10-19 14:11:47 +02:00
|
|
|
|
(base32 "0miamqk7pa2dzmnmi5wb6hjp2a3zya1x8afnlcxby8jb6gp6wf8j"))
|
2016-03-02 14:42:16 +01:00
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(home-page "http://cppcheck.sourceforge.net")
|
|
|
|
|
(synopsis "Static C/C++ code analyzer")
|
|
|
|
|
(description "Cppcheck is a static code analyzer for C and C++. Unlike
|
|
|
|
|
C/C++ compilers and many other analysis tools it does not detect syntax errors
|
|
|
|
|
in the code. Cppcheck primarily detects the types of bugs that the compilers
|
|
|
|
|
normally do not detect. The goal is to detect only real errors in the code
|
|
|
|
|
(i.e. have zero false positives).")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:gpl3+)))
|
2016-06-05 23:03:56 +02:00
|
|
|
|
|
2018-01-21 11:45:33 +01:00
|
|
|
|
(define-public go-gopkg.in-check.v1
|
|
|
|
|
(let ((commit "20d25e2804050c1cd24a7eea1e7a6447dd0e74ec")
|
|
|
|
|
(revision "0"))
|
|
|
|
|
(package
|
|
|
|
|
(name "go-gopkg.in-check.v1")
|
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/go-check/check.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0k1m83ji9l1a7ng8a7v40psbymxasmssbrrhpdv2wl4rhs0nc3np"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:import-path "gopkg.in/check.v1"))
|
|
|
|
|
(synopsis "Rich testing extension for Go's testing package")
|
|
|
|
|
(description
|
|
|
|
|
"@code{check} is a rich testing extension for Go's testing package.")
|
|
|
|
|
(home-page "https://github.com/go-check/check")
|
|
|
|
|
(license license:bsd-2))))
|
|
|
|
|
|
2016-06-05 23:03:56 +02:00
|
|
|
|
(define-public googletest
|
|
|
|
|
(package
|
|
|
|
|
(name "googletest")
|
2017-03-03 08:55:16 +01:00
|
|
|
|
(version "1.8.0")
|
2016-06-05 23:03:56 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/google/googletest/archive/"
|
|
|
|
|
"release-" version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-03-03 08:55:16 +01:00
|
|
|
|
"1n5p1m2m3fjrjdj752lf92f9wq3pl5cbsfrb49jqbg52ghkz99jq"))))
|
|
|
|
|
(build-system cmake-build-system)
|
2017-08-06 16:07:17 +02:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
|
2016-06-05 23:03:56 +02:00
|
|
|
|
(native-inputs
|
2017-03-03 08:55:16 +01:00
|
|
|
|
`(("python-2" ,python-2)))
|
2016-06-05 23:03:56 +02:00
|
|
|
|
(home-page "https://github.com/google/googletest/")
|
|
|
|
|
(synopsis "Test discovery and XUnit test framework")
|
|
|
|
|
(description "Google Test features an XUnit test framework, automated test
|
|
|
|
|
discovery, death tests, assertions, parameterized tests and XML test report
|
|
|
|
|
generation.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:bsd-3)))
|
2017-09-04 13:59:46 +02:00
|
|
|
|
|
|
|
|
|
(define-public cpputest
|
|
|
|
|
(package
|
|
|
|
|
(name "cpputest")
|
|
|
|
|
(version "3.8")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/cpputest/cpputest/releases/download/v"
|
|
|
|
|
version "/cpputest-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0mk48xd3klyqi7wf3f4wn4zqxxzmvrhhl32r25jzrixzl72wq7f8"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("googletest" ,googletest)))
|
|
|
|
|
(home-page "https://cpputest.github.io/")
|
|
|
|
|
(synopsis "Unit testing and mocking framework for C/C++")
|
|
|
|
|
(description
|
|
|
|
|
"CppUTest is a C/C++ based unit xUnit test framework. It is written in
|
|
|
|
|
C++ but is used in C and C++ projects and frequently used in embedded systems
|
|
|
|
|
but it works for any C/C++ project.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:bsd-3)))
|
2017-10-04 15:03:48 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-parameterized
|
|
|
|
|
(package
|
|
|
|
|
(name "python-parameterized")
|
|
|
|
|
(version "0.6.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "parameterized" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1qj1939shm48d9ql6fm1nrdy4p7sdyj8clz1szh5swwpf1qqxxfa"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; there are no tests
|
|
|
|
|
(home-page "https://github.com/wolever/parameterized")
|
|
|
|
|
(synopsis "Parameterized testing with any Python test framework")
|
|
|
|
|
(description
|
|
|
|
|
"Parameterized is a Python library that aims to fix parameterized testing
|
|
|
|
|
for every Python test framework. It supports nose, py.test, and unittest.")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(license license:bsd-2)))
|
2017-10-04 15:03:48 +02:00
|
|
|
|
|
|
|
|
|
(define-public python2-parameterized
|
|
|
|
|
(package-with-python2 python-parameterized))
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-mock
|
|
|
|
|
(package
|
|
|
|
|
(name "python-mock")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "mock" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:test-target "check"))
|
|
|
|
|
(home-page "https://github.com/testing-cabal/mock")
|
|
|
|
|
(synopsis "Python mocking and patching library for testing")
|
|
|
|
|
(description
|
|
|
|
|
"Mock is a library for testing in Python. It allows you to replace parts
|
|
|
|
|
of your system under test with mock objects and make assertions about how they
|
|
|
|
|
have been used.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-mock
|
|
|
|
|
(package-with-python2 python-mock))
|
|
|
|
|
|
|
|
|
|
;;; Some packages (notably, certbot and python-acme) rely on this newer version
|
|
|
|
|
;;; of python-mock. However, a large number of packages fail to build with
|
|
|
|
|
;;; mock@2, so we add a new variable for now. Also, there may be a dependency
|
|
|
|
|
;;; cycle between mock and six, so we avoid creating python2-mock@2 for now.
|
|
|
|
|
(define-public python-mock-2
|
|
|
|
|
(package
|
|
|
|
|
(inherit python-mock)
|
|
|
|
|
(version "2.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "mock" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1flbpksir5sqrvq2z0dp8sl4bzbadg21sj4d42w3klpdfvgvcn5i"))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pbr" ,python-pbr-minimal)
|
|
|
|
|
,@(package-propagated-inputs python-mock)))))
|
|
|
|
|
|
|
|
|
|
(define-public python-nose
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nose")
|
|
|
|
|
(version "1.3.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nose" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; FIXME: test suite fails
|
|
|
|
|
(home-page "http://readthedocs.org/docs/nose/")
|
|
|
|
|
(synopsis "Python testing library")
|
|
|
|
|
(description
|
|
|
|
|
"Nose extends the unittest library to make testing easier.")
|
|
|
|
|
(license license:lgpl2.0+)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nose
|
|
|
|
|
(package-with-python2 python-nose))
|
|
|
|
|
|
|
|
|
|
(define-public python-nose2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nose2")
|
|
|
|
|
(version "0.6.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nose2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector'
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-cov-core" ,python-cov-core)
|
|
|
|
|
("python-pytest-cov" ,python-pytest-cov)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/nose-devs/nose2")
|
|
|
|
|
(synopsis "Next generation of nicer testing for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Nose2 is the next generation of nicer testing for Python, based on the
|
|
|
|
|
plugins branch of unittest2. Nose2 aims to improve on nose by providing a
|
|
|
|
|
better plugin api, being easier for users to configure, and simplifying internal
|
|
|
|
|
interfaces and processes.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nose2
|
|
|
|
|
(package-with-python2 python-nose2))
|
|
|
|
|
|
|
|
|
|
(define-public python-unittest2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-unittest2")
|
|
|
|
|
(version "0.5.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/unittest2")
|
|
|
|
|
(synopsis "Python unit testing library")
|
|
|
|
|
(description
|
|
|
|
|
"Unittest2 is a replacement for the unittest module in the Python
|
|
|
|
|
standard library.")
|
|
|
|
|
(license license:psfl)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-unittest2
|
|
|
|
|
(package (inherit python-unittest2)
|
|
|
|
|
(name "python2-unittest2")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/u/unittest2/unittest2-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y855kmx7a8rnf81d3lh5lyxai1908xjp0laf4glwa4c8472m212"))
|
|
|
|
|
(patches
|
|
|
|
|
(search-patches "python2-unittest2-remove-argparse.patch"))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-six" ,python2-six)
|
|
|
|
|
("python2-traceback2" ,python2-traceback2)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f)))) ; no setup.py test command
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest")
|
|
|
|
|
(version "2.7.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/pytest/pytest-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; One of the tests involves the /usr directory, so it fails.
|
|
|
|
|
'(substitute* "testing/test_argcomplete.py"
|
|
|
|
|
(("def test_remove_dir_prefix\\(self\\):")
|
|
|
|
|
"@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-py" ,python-py)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(;; Tests need the "regular" bash since 'bash-final' lacks `compgen`.
|
|
|
|
|
("bash" ,bash)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-mock" ,python-mock)))
|
|
|
|
|
(home-page "http://pytest.org")
|
|
|
|
|
(synopsis "Python testing library")
|
|
|
|
|
(description
|
|
|
|
|
"Pytest is a testing tool that provides auto-discovery of test modules
|
|
|
|
|
and functions, detailed info on failing assert statements, modular fixtures,
|
|
|
|
|
and many external plugins.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest
|
|
|
|
|
(package-with-python2 python-pytest))
|
|
|
|
|
|
|
|
|
|
;; Some packages require a newer pytest.
|
|
|
|
|
(define-public python-pytest-3.0
|
|
|
|
|
(package
|
|
|
|
|
(inherit python-pytest)
|
|
|
|
|
(name "python-pytest")
|
|
|
|
|
(version "3.0.7")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1asc4b2nd2a4f0g3r12y97rslq5wliji7b73wwkvdrm5s7mrc1mp"))))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'disable-invalid-test
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "testing/test_argcomplete.py"
|
|
|
|
|
(("def test_remove_dir_prefix" line)
|
|
|
|
|
(string-append "@pytest.mark.skip"
|
|
|
|
|
"(reason=\"Assumes that /usr exists.\")\n "
|
|
|
|
|
line)))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-hypothesis" ,python-hypothesis)
|
|
|
|
|
,@(package-native-inputs python-pytest)))
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-3.0))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-3.0
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pytest-3.0))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python2-enum34" ,python2-enum34)
|
|
|
|
|
,@(package-native-inputs base))))))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-cov
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-cov")
|
|
|
|
|
(version "2.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-cov" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"03c2qc42r4bczyw93gd7n0qi1h1jfhw7fnbhi33c3vp1hs81gm2k"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; options taken from tox.ini
|
|
|
|
|
;; TODO: make "--restructuredtext" tests pass. They currently fail
|
|
|
|
|
;; with "Duplicate implicit target name"
|
|
|
|
|
(zero? (system* "python" "./setup.py" "check"
|
|
|
|
|
"--strict" "--metadata")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-coverage" ,python-coverage)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "https://github.com/pytest-dev/pytest-cov")
|
|
|
|
|
(synopsis "Pytest plugin for measuring coverage")
|
|
|
|
|
(description
|
|
|
|
|
"Pytest-cov produces coverage reports. It supports centralised testing and
|
|
|
|
|
distributed testing in both @code{load} and @code{each} modes. It also
|
|
|
|
|
supports coverage of subprocesses.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-cov
|
|
|
|
|
(package-with-python2 python-pytest-cov))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-runner
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-runner")
|
|
|
|
|
(version "2.11.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-runner" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1cw978kqqcq916b9gfns1qjqvg33c5ail5jhw9054dsynkm32flq"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; The fancy way of setting the version with setuptools_scm does not
|
|
|
|
|
;; seem to work here.
|
|
|
|
|
(add-after 'unpack 'set-version
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "docs/conf.py"
|
|
|
|
|
(("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
|
|
|
|
|
(string-append "version = \"" ,version "\"")))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)))
|
|
|
|
|
(home-page "https://github.com/pytest-dev/pytest-runner")
|
|
|
|
|
(synopsis "Invoke py.test as a distutils command")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a @command{pytest-runner} command that
|
|
|
|
|
@file{setup.py} files can use to run tests.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-runner
|
|
|
|
|
(package-with-python2 python-pytest-runner))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-mock
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-mock")
|
|
|
|
|
(version "1.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-mock" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "https://github.com/pytest-dev/pytest-mock/")
|
|
|
|
|
(synopsis "Thin-wrapper around the mock package for easier use with py.test")
|
|
|
|
|
(description
|
|
|
|
|
"This plugin installs a @code{mocker} fixture which is a thin-wrapper
|
|
|
|
|
around the patching API provided by the @code{mock} package, but with the
|
|
|
|
|
benefit of not having to worry about undoing patches at the end of a test.
|
|
|
|
|
The mocker fixture has the same API as @code{mock.patch}, supporting the
|
|
|
|
|
same arguments.")
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pytest-mock))))
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-mock
|
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pytest-mock))))
|
|
|
|
|
(package (inherit base)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-mock" ,python2-mock)
|
|
|
|
|
,@(package-propagated-inputs base))))))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-xdist
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-xdist")
|
|
|
|
|
(version "1.14")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-xdist" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Remove pre-compiled .pyc files from source.
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
(find-files "." "__pycache__" #:directories? #t))
|
|
|
|
|
(for-each delete-file (find-files "." "\\.pyc$"))
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ;FIXME: Some tests are failing.
|
|
|
|
|
;; #:phases
|
|
|
|
|
;; (modify-phases %standard-phases
|
|
|
|
|
;; (delete 'check)
|
|
|
|
|
;; (add-after 'install 'check
|
|
|
|
|
;; (lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
;; (add-installed-pythonpath inputs outputs)
|
|
|
|
|
;; (zero? (system* "py.test" "-v")))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)
|
|
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-execnet" ,python-execnet)
|
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-py" ,python-py)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/pytest-dev/pytest-xdist")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Plugin for py.test with distributed testing and loop-on-failing modes")
|
|
|
|
|
(description
|
|
|
|
|
"The pytest-xdist plugin extends py.test with some unique test execution
|
|
|
|
|
modes: parallelization, running tests in boxed subprocesses, the ability
|
|
|
|
|
to run tests repeatedly when failed, and the ability to run tests on multiple
|
|
|
|
|
Python interpreters or platforms. It uses rsync to copy the existing
|
|
|
|
|
program code to a remote location, executes there, and then syncs the
|
|
|
|
|
result back.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-xdist
|
|
|
|
|
(package-with-python2 python-pytest-xdist))
|
|
|
|
|
|
|
|
|
|
(define-public python-scripttest
|
|
|
|
|
(package
|
|
|
|
|
(name "python-scripttest")
|
|
|
|
|
(version "1.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/s/scripttest/scripttest-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "http://pythonpaste.org/scripttest/")
|
|
|
|
|
(synopsis "Python library to test command-line scripts")
|
|
|
|
|
(description "Scripttest is a Python helper library for testing
|
|
|
|
|
interactive command-line applications. With it you can run a script in a
|
|
|
|
|
subprocess and see the output as well as any file modifications.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-scripttest
|
|
|
|
|
(package-with-python2 python-scripttest))
|
|
|
|
|
|
|
|
|
|
(define-public python-testtools
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testtools")
|
|
|
|
|
(version "1.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "testtools" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1vw8yljnd75d396hhw6s2hrf4cclzy845ifd5am0lxsl235z3i8c"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-module-imports
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("'unittest2>=0.8.0',") ""))
|
|
|
|
|
(substitute* '("testtools/testcase.py"
|
|
|
|
|
"testtools/testsuite.py"
|
|
|
|
|
"testtools/run.py"
|
|
|
|
|
"testtools/tests/test_run.py"
|
|
|
|
|
"testtools/tests/test_testsuite.py"
|
|
|
|
|
"testtools/tests/test_deferredruntest.py")
|
|
|
|
|
;; unittest2 is a backport of Python2.7 features to Python 2.4.
|
|
|
|
|
(("import unittest2 as unittest") "import unittest")
|
|
|
|
|
(("import unittest2") "import unittest as unittest2")
|
|
|
|
|
(("from unittest2 import") "from unittest import"))
|
|
|
|
|
(substitute* "testtools/tests/test_testresult.py"
|
|
|
|
|
;; NUL in source code is not allowed (raises ValueError).
|
|
|
|
|
(("\\x00\\x04") "\\x04"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-mimeparse" ,python-mimeparse)
|
|
|
|
|
("python-extras" ,python-extras)))
|
|
|
|
|
(home-page "https://github.com/testing-cabal/testtools")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Extensions to the Python standard library unit testing framework")
|
|
|
|
|
(description
|
|
|
|
|
"Testtools extends the Python standard library unit testing framework to
|
|
|
|
|
provide matchers, more debugging information, and cross-Python
|
|
|
|
|
compatibility.")
|
|
|
|
|
(license license:psfl)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-testtools
|
|
|
|
|
(package-with-python2 python-testtools))
|
|
|
|
|
|
|
|
|
|
(define-public python-testscenarios
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testscenarios")
|
|
|
|
|
(version "0.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-testtools" ,python-testtools)))
|
|
|
|
|
(home-page "https://launchpad.net/testscenarios")
|
|
|
|
|
(synopsis "Pyunit extension for dependency injection")
|
|
|
|
|
(description
|
|
|
|
|
"Testscenarios provides clean dependency injection for Python unittest
|
|
|
|
|
style tests.")
|
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at the user's option
|
|
|
|
|
|
|
|
|
|
(define-public python2-testscenarios
|
|
|
|
|
(package-with-python2 python-testscenarios))
|
|
|
|
|
|
|
|
|
|
(define-public python-testresources
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testresources")
|
|
|
|
|
(version "0.2.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testresources/testresources-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://launchpad.net/testresources")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Pyunit extension for managing test resources")
|
|
|
|
|
(description
|
|
|
|
|
"Testresources is an extension to Python's unittest to allow declarative
|
|
|
|
|
use of resources by test cases.")
|
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at the user's option
|
|
|
|
|
|
|
|
|
|
(define-public python2-testresources
|
|
|
|
|
(package-with-python2 python-testresources))
|
|
|
|
|
|
|
|
|
|
(define-public python-subunit
|
|
|
|
|
(package
|
|
|
|
|
(name "python-subunit")
|
|
|
|
|
(version "0.0.21")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-extras" ,python-extras)
|
|
|
|
|
("python-mimeparse" ,python-mimeparse)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-testscenarios" ,python-testscenarios)))
|
|
|
|
|
(home-page "http://launchpad.net/subunit")
|
|
|
|
|
(synopsis "Python implementation of the subunit protocol")
|
|
|
|
|
(description
|
|
|
|
|
"Python-subunit is a Python implementation of the subunit test streaming
|
|
|
|
|
protocol.")
|
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at the user's option
|
|
|
|
|
|
|
|
|
|
(define-public python2-subunit
|
|
|
|
|
(package-with-python2 python-subunit))
|
|
|
|
|
|
|
|
|
|
(define-public python-fixtures
|
|
|
|
|
(package
|
|
|
|
|
(name "python-fixtures")
|
|
|
|
|
(version "1.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "fixtures" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "python" "-m" "testtools.run"
|
|
|
|
|
"fixtures.test_suite")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-pbr-minimal" ,python-pbr-minimal)
|
|
|
|
|
("python-testtools" ,python-testtools)))
|
|
|
|
|
(home-page "https://launchpad.net/python-fixtures")
|
|
|
|
|
(synopsis "Python test fixture library")
|
|
|
|
|
(description
|
|
|
|
|
"Fixtures provides a way to create reusable state, useful when writing
|
|
|
|
|
Python tests.")
|
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at user's option
|
|
|
|
|
|
|
|
|
|
(define-public python2-fixtures
|
|
|
|
|
(package-with-python2 python-fixtures))
|
|
|
|
|
|
|
|
|
|
(define-public python-testrepository
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testrepository")
|
|
|
|
|
(version "0.0.20")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testrepository/testrepository-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; FIXME: Many tests are failing.
|
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-fixtures" ,python-fixtures)
|
|
|
|
|
("python-subunit" ,python-subunit)
|
|
|
|
|
("python-testtools" ,python-testtools)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pbr-minimal" ,python-pbr-minimal) ;; same as for building fixture
|
|
|
|
|
("python-mimeparse" ,python-mimeparse)))
|
|
|
|
|
(home-page "https://launchpad.net/testrepository")
|
|
|
|
|
(synopsis "Database for Python test results")
|
|
|
|
|
(description "Testrepository provides a database of test results which can
|
|
|
|
|
be used as part of a developer's workflow to check things such as what tests
|
|
|
|
|
have failed since the last commit or what tests are currently failing.")
|
|
|
|
|
(license (list license:bsd-3 license:asl2.0)))) ; at user's option
|
|
|
|
|
|
|
|
|
|
(define-public python2-testrepository
|
|
|
|
|
(package-with-python2 python-testrepository))
|
|
|
|
|
|
|
|
|
|
(define-public python-coverage
|
|
|
|
|
(package
|
|
|
|
|
(name "python-coverage")
|
|
|
|
|
(version "4.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "coverage" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; FIXME: 95 tests failed, 539 passed, 6 skipped, 2 errors.
|
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(home-page "http://nedbatchelder.com/code/coverage")
|
|
|
|
|
(synopsis "Code coverage measurement for Python")
|
|
|
|
|
(description
|
|
|
|
|
"Coverage measures code coverage, typically during test execution. It
|
|
|
|
|
uses the code analysis tools and tracing hooks provided in the Python standard
|
|
|
|
|
library to determine which lines are executable, and which have been
|
|
|
|
|
executed.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-coverage
|
|
|
|
|
(package-with-python2 python-coverage))
|
|
|
|
|
|
|
|
|
|
(define-public python-cov-core
|
|
|
|
|
(package
|
|
|
|
|
(name "python-cov-core")
|
|
|
|
|
(version "1.15.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "cov-core" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-coverage" ,python-coverage)))
|
|
|
|
|
(home-page "https://github.com/schlamar/cov-core")
|
|
|
|
|
(synopsis "Coverage plugin core for pytest-cov, nose-cov and nose2-cov")
|
|
|
|
|
(description
|
|
|
|
|
"This is a library package for use by @code{pytest-cov}, @code{nose-cov}
|
|
|
|
|
and @code{nose2-cov}. It is useful for developing coverage plugins for these
|
|
|
|
|
testing frameworks.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-cov-core
|
|
|
|
|
(package-with-python2 python-cov-core))
|
|
|
|
|
|
|
|
|
|
(define-public python-testpath
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testpath")
|
|
|
|
|
(version "0.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/jupyter/testpath/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04kh3fgvmqz6cfcw79q70qwjz7ib7lxm27cc548iy2rpr33qqf55"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; this package does not even have a setup.py
|
|
|
|
|
#:modules ((guix build python-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1))
|
|
|
|
|
#:imported-modules (,@%python-build-system-modules
|
|
|
|
|
(srfi srfi-1))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'install)
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((version (last
|
|
|
|
|
(string-split (assoc-ref inputs "python") #\-)))
|
|
|
|
|
(x.y (string-join (take (string-split version #\.) 2)
|
|
|
|
|
"."))
|
|
|
|
|
(dir (string-append
|
|
|
|
|
(assoc-ref outputs "out")
|
|
|
|
|
"/lib/python" x.y "/site-packages/testpath")))
|
|
|
|
|
(mkdir-p dir)
|
|
|
|
|
(copy-recursively "testpath" dir))
|
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "https://github.com/takluyver/testpath")
|
|
|
|
|
(synopsis "Test utilities for code working with files and commands")
|
|
|
|
|
(description
|
|
|
|
|
"Testpath is a collection of utilities for Python code working with files
|
2018-01-19 16:25:13 +01:00
|
|
|
|
and commands. It contains functions to check things on the file system, and
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
tools for mocking system commands and recording calls to those.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-testpath
|
|
|
|
|
(package-with-python2 python-testpath))
|
|
|
|
|
|
|
|
|
|
(define-public python-testlib
|
|
|
|
|
(package
|
|
|
|
|
(name "python-testlib")
|
|
|
|
|
(version "0.6.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/t/testlib/testlib-"
|
|
|
|
|
version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip))) ; for unpacking the source
|
|
|
|
|
(synopsis "Python micro test suite harness")
|
|
|
|
|
(description "A micro unittest suite harness for Python.")
|
|
|
|
|
(home-page "https://github.com/trentm/testlib")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-testlib
|
|
|
|
|
(package-with-python2 python-testlib))
|
|
|
|
|
|
|
|
|
|
;;; The software provided by this package was integrated into pytest 2.8.
|
|
|
|
|
(define-public python-pytest-cache
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-cache")
|
|
|
|
|
(version "1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-cache" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-apipkg" ,python-apipkg)
|
|
|
|
|
("python-execnet" ,python-execnet)
|
|
|
|
|
("python-py" ,python-py)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(synopsis "Py.test plugin with mechanisms for caching across test runs")
|
|
|
|
|
(description "The pytest-cache plugin provides tools to rerun failures from
|
|
|
|
|
the last py.test invocation.")
|
|
|
|
|
(home-page "https://bitbucket.org/hpk42/pytest-cache/")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-cache
|
|
|
|
|
(package-with-python2 python-pytest-cache))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-localserver
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-localserver")
|
|
|
|
|
(version "0.3.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-localserver" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "py.test" "--genscript=runtests.py"))
|
|
|
|
|
(zero? (system* "py.test")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-werkzeug" ,python-werkzeug)))
|
|
|
|
|
(synopsis "Py.test plugin to test server connections locally")
|
|
|
|
|
(description "Pytest-localserver is a plugin for the pytest testing
|
|
|
|
|
framework which enables you to test server connections locally.")
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/pytest-localserver")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-xprocess
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-xprocess")
|
|
|
|
|
(version "0.9.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-xprocess" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-cache" ,python-pytest-cache)
|
|
|
|
|
("python-psutil" ,python-psutil)))
|
|
|
|
|
(synopsis "Pytest plugin to manage external processes across test runs")
|
|
|
|
|
(description "Pytest-xprocess is an experimental py.test plugin for managing
|
|
|
|
|
processes across test runs.")
|
|
|
|
|
(home-page "https://bitbucket.org/pytest-dev/pytest-xprocess")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-subtesthack
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-subtesthack")
|
|
|
|
|
(version "0.1.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-subtesthack" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(synopsis "Set-up and tear-down fixtures for unit tests")
|
|
|
|
|
(description "This plugin allows you to set up and tear down fixtures within
|
|
|
|
|
unit test functions that use @code{py.test}. This is useful for using
|
|
|
|
|
@command{hypothesis} inside py.test, as @command{hypothesis} will call the test
|
|
|
|
|
function multiple times, without setting up or tearing down fixture state as is
|
|
|
|
|
normally the case.")
|
|
|
|
|
(home-page "https://github.com/untitaker/pytest-subtesthack/")
|
|
|
|
|
(license license:unlicense)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-subtesthack
|
|
|
|
|
(package-with-python2 python-pytest-subtesthack))
|
|
|
|
|
|
|
|
|
|
(define-public python-hypothesis
|
|
|
|
|
(package
|
|
|
|
|
(name "python-hypothesis")
|
|
|
|
|
(version "3.1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "hypothesis" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-flake8" ,python-flake8)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(synopsis "Library for property based testing")
|
|
|
|
|
(description "Hypothesis is a library for testing your Python code against a
|
|
|
|
|
much larger range of examples than you would ever want to write by hand. It’s
|
|
|
|
|
based on the Haskell library, Quickcheck, and is designed to integrate
|
|
|
|
|
seamlessly into your existing Python unit testing work flow.")
|
|
|
|
|
(home-page "https://github.com/DRMacIver/hypothesis")
|
|
|
|
|
(license license:mpl2.0)
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-hypothesis))))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-hypothesis
|
|
|
|
|
(let ((hypothesis (package-with-python2
|
|
|
|
|
(strip-python2-variant python-hypothesis))))
|
|
|
|
|
(package (inherit hypothesis)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-enum34" ,python2-enum34)
|
|
|
|
|
,@(package-propagated-inputs hypothesis))))))
|
|
|
|
|
|
|
|
|
|
(define-public python-lit
|
|
|
|
|
(package
|
|
|
|
|
(name "python-lit")
|
2017-12-25 01:42:09 +01:00
|
|
|
|
(version "0.5.1")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "lit" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-25 01:42:09 +01:00
|
|
|
|
"0z651m3vkbk85y41larnsjxrszkbi58x9gzml3lb6ga7qwcrsg97"))))
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(build-system python-build-system)
|
2017-12-30 12:00:31 +01:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "py.test"))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
2017-12-25 01:39:14 +01:00
|
|
|
|
(home-page "https://llvm.org/")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(synopsis "LLVM Software Testing Tool")
|
|
|
|
|
(description "@code{lit} is a portable tool for executing LLVM and Clang
|
|
|
|
|
style test suites, summarizing their results, and providing indication of
|
|
|
|
|
failures.")
|
|
|
|
|
(license license:ncsa)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-lit
|
|
|
|
|
(package-with-python2 python-lit))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-pep8
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-pep8")
|
|
|
|
|
(version "1.0.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-pep8" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pep8" ,python-pep8)))
|
|
|
|
|
(home-page "https://bitbucket.org/pytest-dev/pytest-pep8")
|
|
|
|
|
(synopsis "Py.test plugin to check PEP8 requirements")
|
|
|
|
|
(description "Pytest plugin for checking PEP8 compliance.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-pep8
|
|
|
|
|
(package-with-python2 python-pytest-pep8))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-flakes
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-flakes")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-flakes" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(add-after 'install 'check
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
;; It's easier to run tests after install.
|
|
|
|
|
;; Make installed package available for running the tests
|
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
|
(zero? (system* "py.test" "-vv")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-coverage" ,python-coverage)
|
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-cache" ,python-pytest-cache)
|
|
|
|
|
("python-pytest-pep8" ,python-pytest-pep8)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-pyflakes" ,python-pyflakes)))
|
|
|
|
|
(home-page "https://github.com/fschulze/pytest-flakes")
|
|
|
|
|
(synopsis "Py.test plugin to check source code with pyflakes")
|
|
|
|
|
(description "Pytest plugin for checking Python source code with pyflakes.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-flakes
|
|
|
|
|
(package-with-python2 python-pytest-flakes))
|
|
|
|
|
|
|
|
|
|
(define-public python2-coverage-test-runner
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-coverage-test-runner")
|
|
|
|
|
(version "1.11")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://git.liw.fi/cgi-bin/cgit/cgit.cgi/"
|
|
|
|
|
"coverage-test-runner/snapshot/coverage-test-runner-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y1m7z3dl63kmhcmydl1mwg0hacnf6ghrx9dah17j9iasssfa3g7"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "./testrun")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-coverage" ,python2-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
|
|
|
|
|
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 python-pylint
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pylint")
|
|
|
|
|
(version "1.7.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/PyCQA/pylint/archive/pylint-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0mzn1czhf1mgr2wiqfihb274sja02h899b85kywdpivppa9nwrmp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-runner" ,python-pytest-runner)
|
|
|
|
|
("python-tox" ,python-tox)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-astroid" ,python-astroid)
|
|
|
|
|
("python-isort" ,python-isort)
|
|
|
|
|
("python-mccabe" ,python-mccabe)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Somehow, tests for python2-pylint
|
|
|
|
|
;; fail if run from the build directory
|
|
|
|
|
(let ((work "/tmp/work"))
|
|
|
|
|
(mkdir-p work)
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append (getenv "PYTHONPATH") ":" work))
|
|
|
|
|
(copy-recursively "." work)
|
|
|
|
|
(with-directory-excursion "/tmp"
|
|
|
|
|
(zero? (system* "python" "-m" "unittest" "discover"
|
|
|
|
|
"-s" (string-append work "/pylint/test")
|
|
|
|
|
"-p" "*test_*.py")))))))))
|
|
|
|
|
(home-page "https://github.com/PyCQA/pylint")
|
|
|
|
|
(synopsis "Python source code analyzer which looks for coding standard
|
|
|
|
|
errors")
|
|
|
|
|
(description "Pylint is a Python source code analyzer which looks
|
|
|
|
|
for programming errors, helps enforcing a coding standard and sniffs
|
|
|
|
|
for some code smells (as defined in Martin Fowler's Refactoring book).
|
|
|
|
|
|
|
|
|
|
Pylint has many rules enabled by default, way too much to silence them
|
|
|
|
|
all on a minimally sized program. It's highly configurable and handle
|
|
|
|
|
pragmas to control it from within your code. Additionally, it is
|
|
|
|
|
possible to write plugins to add your own checks.")
|
|
|
|
|
(properties `((python2-variant . ,(delay python2-pylint))))
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pylint
|
|
|
|
|
(let ((pylint (package-with-python2
|
|
|
|
|
(strip-python2-variant python-pylint))))
|
|
|
|
|
(package (inherit pylint)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python2-backports-functools-lru-cache"
|
|
|
|
|
,python2-backports-functools-lru-cache)
|
|
|
|
|
("python2-configparser" ,python2-configparser)
|
|
|
|
|
,@(package-propagated-inputs pylint))))))
|
|
|
|
|
|
|
|
|
|
(define-public python-paramunittest
|
|
|
|
|
(package
|
|
|
|
|
(name "python-paramunittest")
|
|
|
|
|
(version "0.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "ParamUnittest" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0kp793hws5xv1wvycxq7jw2pwy36f35k39jg8hx5qikij5a0jid1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/rik0/ParamUnittest")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Simple extension to have parametrized unit tests")
|
|
|
|
|
(description
|
|
|
|
|
"This package allows to create parametrized unit-tests that work with the standard
|
|
|
|
|
unittest package. A parametrized test case is automatically converted to multiple test
|
|
|
|
|
cases. Since they are TestCase subclasses, they work with other test suites that
|
|
|
|
|
recognize TestCases.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-python-paramunittest
|
|
|
|
|
(package-with-python2 python-paramunittest))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-warnings
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-warnings")
|
|
|
|
|
(version "0.2.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-warnings" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0gf2dpahpl5igb7jh1sr9acj3z3gp7zahqdqb69nk6wx01c8kc1g"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("pytest" ,python-pytest-3.0)))
|
|
|
|
|
(home-page "https://github.com/fschulze/pytest-warnings")
|
|
|
|
|
(synopsis "Pytest plugin to list Python warnings in pytest report")
|
|
|
|
|
(description
|
|
|
|
|
"Python-pytest-warnings is a pytest plugin to list Python warnings in
|
|
|
|
|
pytest report.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-warnings
|
|
|
|
|
(package-with-python2 python-pytest-warnings))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-capturelog
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-capturelog")
|
|
|
|
|
(version "0.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-capturelog" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"038049nyjl7di59ycnxvc9nydivc5m8np3hqq84j2iirkccdbs5n"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("pytest" ,python-pytest-3.0)))
|
2017-12-26 02:14:13 +01:00
|
|
|
|
(home-page "https://bitbucket.org/memedough/pytest-capturelog/overview")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(synopsis "Pytest plugin to catch log messages")
|
|
|
|
|
(description
|
|
|
|
|
"Python-pytest-catchlog is a pytest plugin to catch log messages.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-capturelog
|
|
|
|
|
(package-with-python2 python-pytest-capturelog))
|
|
|
|
|
|
|
|
|
|
(define-public python-pytest-catchlog
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-catchlog")
|
|
|
|
|
(version "1.2.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-catchlog" version ".zip"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1w7wxh27sbqwm4jgwrjr9c2gy384aca5jzw9c0wzhl0pmk2mvqab"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("unzip" ,unzip)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("pytest" ,python-pytest-3.0)))
|
|
|
|
|
(home-page "https://github.com/eisensheng/pytest-catchlog")
|
|
|
|
|
(synopsis "Pytest plugin to catch log messages")
|
|
|
|
|
(description
|
|
|
|
|
"Python-pytest-catchlog is a pytest plugin to catch log messages. This is
|
|
|
|
|
a fork of pytest-capturelog.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-catchlog
|
|
|
|
|
(package-with-python2 python-pytest-catchlog))
|
|
|
|
|
|
|
|
|
|
(define-public python-nosexcover
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nosexcover")
|
|
|
|
|
(version "1.0.11")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nosexcover" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"10xqr12qv62k2flxwqhh8cr00cjhn7sfjrm6p35gd1x5bmjkr319"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-coverage" ,python-coverage)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "http://github.com/cmheisel/nose-xcover")
|
|
|
|
|
(synopsis "Extends nose.plugins.cover to add Cobertura-style XML reports")
|
|
|
|
|
(description "Nose-xcover is a companion to the built-in
|
|
|
|
|
@code{nose.plugins.cover}. This plugin will write out an XML coverage report
|
|
|
|
|
to a file named coverage.xml.
|
|
|
|
|
|
|
|
|
|
It will honor all the options you pass to the Nose coverage plugin,
|
|
|
|
|
especially -cover-package.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nosexcover
|
|
|
|
|
(package-with-python2 python-nosexcover))
|
|
|
|
|
|
|
|
|
|
(define-public python-discover
|
|
|
|
|
(package
|
|
|
|
|
(name "python-discover")
|
|
|
|
|
(version "0.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/d/discover/discover-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://pypi.python.org/pypi/discover/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python test discovery for unittest")
|
|
|
|
|
(description
|
|
|
|
|
"Discover provides test discovery for unittest, a feature that has been
|
|
|
|
|
backported from Python 2.7 for Python 2.4+.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-discover
|
|
|
|
|
(package-with-python2 python-discover))
|
|
|
|
|
|
|
|
|
|
(define-public behave
|
|
|
|
|
(package
|
|
|
|
|
(name "behave")
|
|
|
|
|
(version "1.2.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "behave" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c"))))
|
|
|
|
|
(build-system python-build-system)
|
2018-01-08 17:08:06 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-pyhamcrest" ,python-pyhamcrest)))
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-parse" ,python-parse)
|
|
|
|
|
("python-parse-type" ,python-parse-type)))
|
2018-01-08 17:08:06 +01:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:test-target "behave_test"))
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(home-page "https://github.com/behave/behave")
|
|
|
|
|
(synopsis "Python behavior-driven development")
|
|
|
|
|
(description
|
|
|
|
|
"Behave is a tool for behavior-driven development in python.
|
|
|
|
|
Behavior-driven development (or BDD) is an agile software development
|
|
|
|
|
technique that encourages collaboration between developers, QA and
|
|
|
|
|
non-technical or business participants in a software project. Behave uses
|
|
|
|
|
tests written in a natural language style, backed up by Python code.")
|
|
|
|
|
(license license:x11)))
|
|
|
|
|
|
|
|
|
|
(define-public python-behave-web-api
|
|
|
|
|
(package
|
|
|
|
|
(name "python-behave-web-api")
|
|
|
|
|
(version "1.0.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "behave-web-api" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"03kpq2xsy1gab3jy0dccbxlsg7vwfy4lagss0qldwmx3xz6b3i19"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-dependencies
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("'wheel'") "") ; We don't use it.
|
|
|
|
|
(("'ordereddict==1.1'") ""))))))) ; Python >= 2.7 has it built-in.
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("behave" ,behave)
|
|
|
|
|
("python-requests" ,python-requests)))
|
|
|
|
|
(home-page "https://github.com/jefersondaniel/behave-web-api")
|
|
|
|
|
(synopsis "Provides testing for JSON APIs with Behave for Python")
|
|
|
|
|
(description "This package provides testing utility modules for testing
|
|
|
|
|
JSON APIs with Behave.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-behave-web-api
|
|
|
|
|
(package-with-python2 python-behave-web-api))
|
|
|
|
|
|
|
|
|
|
(define-public python-rednose
|
|
|
|
|
(package
|
|
|
|
|
(name "python-rednose")
|
2017-12-25 01:41:08 +01:00
|
|
|
|
(version "1.2.3")
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "rednose" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-25 01:41:08 +01:00
|
|
|
|
"11x5nx5b4wdq04s7vj1gcdl07jvvkfb37p0r5lg773gr5rr8mj6h"))))
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 21:42:23 +01:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-colorama" ,python-colorama)
|
|
|
|
|
("python-termstyle" ,python-termstyle)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-nose" ,python-nose)))
|
|
|
|
|
(home-page "https://github.com/JBKahn/rednose")
|
|
|
|
|
(synopsis "Colored output for Python nosetests")
|
|
|
|
|
(description "This package provides colored output for the
|
|
|
|
|
@command{nosetests} command of the Python Nose unit test framework.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-rednose
|
|
|
|
|
(package-with-python2 python-rednose))
|
|
|
|
|
|
|
|
|
|
(define-public python-nose-randomly
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nose-randomly")
|
|
|
|
|
(version "1.2.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nose-randomly" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1cw9dlr1zh3w4i438kin7z0rm8092ki52hayisyc43h9pcplq7rn"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-numpy" ,python-numpy)))
|
|
|
|
|
(home-page "https://github.com/adamchainz/nose-randomly")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Nose plugin to randomly order tests and control random.seed")
|
|
|
|
|
(description
|
|
|
|
|
"This is a @code{Nose} plugin to randomly order tests which can be quite
|
|
|
|
|
powerful in discovering hidden flaws in the tests themselves, while helping to
|
|
|
|
|
reduce inter-test dependencies. It also helps in controlling @code{random.seed},
|
|
|
|
|
by resetting it to a repeatable number for each test, enabling the tests to
|
|
|
|
|
create data based on random numbers and yet remain repeatable.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nose-randomly
|
|
|
|
|
(package-with-python2 python-nose-randomly))
|
|
|
|
|
|
|
|
|
|
(define-public python-nose-timer
|
|
|
|
|
(package
|
|
|
|
|
(name "python-nose-timer")
|
|
|
|
|
(version "0.7.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "nose-timer" version))
|
|
|
|
|
(patches
|
|
|
|
|
(search-patches
|
|
|
|
|
;; This patch will not be needed in the next version.
|
|
|
|
|
;; It is taken from the master branch.
|
|
|
|
|
"python-nose-timer-drop-ordereddict.patch"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1s32ymsnby8lz2qk55ifj9zi50dqcg6swnj5cz2rmwxg2jsslsxp"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-termcolor" ,python-termcolor)))
|
|
|
|
|
(home-page "https://github.com/mahmoudimus/nose-timer")
|
|
|
|
|
(synopsis "Timer plugin for nosetests")
|
|
|
|
|
(description "Shows how much time was needed to run individual tests.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-nose-timer
|
|
|
|
|
(package-with-python2 python-nose-timer))
|
2017-11-18 11:30:01 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-freezegun
|
|
|
|
|
(package
|
|
|
|
|
(name "python-freezegun")
|
2017-12-25 01:26:30 +01:00
|
|
|
|
(version "0.3.9")
|
2017-11-18 11:30:01 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "freezegun" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-25 01:26:30 +01:00
|
|
|
|
"1vhf3kgdy7gpy70n3bxa3y1n6aza316137md97z8p5k0gz6wqg3q"))))
|
2017-11-18 11:30:01 +01:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-coverage" ,python-coverage)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-dateutil" ,python-dateutil)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; The tests are normally executed via `make test`, but the PyPi
|
|
|
|
|
;; package does not include the Makefile.
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "nosetests" "./tests/")))))))
|
|
|
|
|
(home-page "https://github.com/spulec/freezegun")
|
|
|
|
|
(synopsis "Test utility for mocking the datetime module")
|
|
|
|
|
(description
|
|
|
|
|
"FreezeGun is a library that allows your python tests to travel through
|
|
|
|
|
time by mocking the datetime module.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-freezegun
|
|
|
|
|
(package-with-python2 python-freezegun))
|
|
|
|
|
|
|
|
|
|
(define-public python-flexmock
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flexmock")
|
|
|
|
|
(version "0.10.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "flexmock" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://flexmock.readthedocs.org")
|
|
|
|
|
(synopsis "Testing library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"flexmock is a testing library for Python that makes it easy to create
|
|
|
|
|
mocks, stubs and fakes.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-flexmock
|
|
|
|
|
(package-with-python2 python-flexmock))
|
|
|
|
|
|
|
|
|
|
(define-public python-flaky
|
|
|
|
|
(package
|
|
|
|
|
(name "python-flaky")
|
|
|
|
|
(version "3.4.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "flaky" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"18pkmf79rfkfpy1d2rrx3v55nxj762ilyk9rvd6s6dccxw58imsa"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; TODO: Tests require 'coveralls' and 'genty' which are not in Guix yet.
|
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(home-page "https://github.com/box/flaky")
|
|
|
|
|
(synopsis "Automatically rerun flaky tests")
|
|
|
|
|
(description
|
|
|
|
|
"Flaky is a plugin for @code{nose} or @code{py.test} that automatically
|
|
|
|
|
reruns flaky tests.
|
|
|
|
|
|
|
|
|
|
Ideally, tests reliably pass or fail, but sometimes test fixtures must rely
|
|
|
|
|
on components that aren't 100% reliable. With flaky, instead of removing
|
|
|
|
|
those tests or marking them to @code{@@skip}, they can be automatically
|
|
|
|
|
retried.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-flaky
|
|
|
|
|
(package-with-python2 python-flaky))
|
2017-12-31 18:35:41 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-pyhamcrest
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyhamcrest")
|
|
|
|
|
(version "1.9.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append
|
|
|
|
|
"https://github.com/hamcrest/PyHamcrest/archive/V"
|
|
|
|
|
version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(file-name
|
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1lqjajhwf7x7igvvnj5p1cm31y9njy07qby94w18kl6zwbdjqrwy"))))
|
|
|
|
|
(native-inputs ; All native inputs are for tests
|
|
|
|
|
`(("python-pytest-cov" ,python-pytest-cov)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-pytest" ,python-pytest-3.0)
|
|
|
|
|
("python-hypothesis" ,python-hypothesis)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://hamcrest.org/")
|
|
|
|
|
(synopsis "Hamcrest matchers for Python")
|
|
|
|
|
(description
|
|
|
|
|
"PyHamcrest is a framework for writing matcher objects,
|
|
|
|
|
allowing you to declaratively define \"match\" rules.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyhamcrest
|
|
|
|
|
(package-with-python2 python-pyhamcrest))
|