From 81b361fdd410d9318ab73cfd8e4742f82ad0ab96 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 14 Apr 2021 23:54:59 +0300 Subject: gnu: Add python-pytest-helpers-namespace. * gnu/packages/python-check.scm (python-pytest-helpers-namespace): New variable. Co-authored-by: jgart Signed-off-by: Efraim Flashner --- gnu/packages/python-check.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index bde836a931..b68f23a220 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Brendan Tildesley ;;; Copyright © 2021 Guillaume Le Vaillant +;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; ;;; This file is part of GNU Guix. ;;; @@ -374,6 +375,39 @@ provides a shortcut to testing all code and documentation for a given sub-package.") (license license:bsd-3))) +(define-public python-pytest-helpers-namespace + (package + (name "python-pytest-helpers-namespace") + (version "2021.3.24") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-helpers-namespace" version)) + (sha256 + (base32 + "0pyj2d45zagmzlajzqdnkw5yz8k49pkihbydsqkzm413qnkzb38q")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Make the installed plugin discoverable by Pytest. + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv")))))) + (native-inputs + `(("python-pytest" ,python-pytest-6) + ("python-setuptools" ,python-setuptools) ; needs setuptools >= 50.3.2 + ("python-setuptools-scm" ,python-setuptools-scm) + ("python-setuptools-declarative-requirements" + ,python-setuptools-declarative-requirements))) + (home-page "https://github.com/saltstack/pytest-helpers-namespace") + (synopsis "Pytest Helpers Namespace Plugin") + (description "Pytest Helpers Namespace Plugin provides a helpers pytest +namespace which can be used to register helper functions without requiring +someone to import them in their actual tests to use them.") + (license license:asl2.0))) + (define-public python-pytest-openfiles (package (name "python-pytest-openfiles") -- cgit v1.3 From 6d7e1bdb03c3b34b306ff02cfb1fe327a56644b2 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 28 Apr 2021 14:28:02 -0400 Subject: gnu: Add python-pytest-click. * gnu/packages/python-check.scm (python-pytest-click): New variable. --- gnu/packages/python-check.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index b68f23a220..01922b0d9d 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -46,6 +46,27 @@ #:use-module (guix download) #:use-module (guix build-system python)) +(define-public python-pytest-click + (package + (name "python-pytest-click") + (version "1.0.2") + (source + (origin + (method url-fetch) + (uri + (pypi-uri "pytest_click" version)) + (sha256 + (base32 "1rcv4m850rl7djzdgzz2zhjd8g5ih8w6l0sj2f9hsynymlsq82xl")))) + (build-system python-build-system) + (propagated-inputs + `(("python-click" ,python-click) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/Stranger6667/pytest-click") + (synopsis "Py.test plugin for Click") + (description "This package provides a plugin to test Python click +interfaces with pytest.") + (license license:expat))) + (define-public python-testfixtures (package (name "python-testfixtures") -- cgit v1.3 From ce13e4a524b42f034220bdff116f4e9f5bf8be69 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Tue, 20 Apr 2021 05:22:36 +0000 Subject: gnu: Add python-pytest-qt. * gnu/packages/python-check.scm (python-pytest-qt): New variable. --- gnu/packages/python-check.scm | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 01922b0d9d..15dbe65473 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2020 Julien Lepiller ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Edouard Klein -;;; Copyright © 2020 Vinicius Monego +;;; Copyright © 2020, 2021 Vinicius Monego ;;; Copyright © 2020 Tanguy Le Carrour ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Brendan Tildesley @@ -37,6 +37,7 @@ #:use-module (gnu packages python-build) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages qt) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (guix utils) @@ -1084,6 +1085,42 @@ variables in the @file{pytest.ini} file.") libraries.") (license license:expat))) +(define-public python-pytest-qt + (package + (name "python-pytest-qt") + (version "3.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-qt" version)) + (sha256 + (base32 "09c9psfn3zigpaw1l1cmynpa3csxa49wc2ih5lzl24skdkw0njvi")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + (add-before 'check 'set-qpa + (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen") + #t))))) + (propagated-inputs + `(("python-pyqt" ,python-pyqt))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner) + ("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/pytest-dev/pytest-qt") + (synopsis "Pytest support for PyQt and PySide applications") + (description + "@code{pytest-qt} is a Pytest plugin that allows programmers to write +tests for PyQt5 and PySide2 applications. + +The main usage is to use the @code{qtbot} fixture, responsible for handling +@code{qApp} creation as needed and provides methods to simulate user +interaction, like key presses and mouse clicks.") + (license license:expat))) + (define-public python-codacy-coverage (package (name "python-codacy-coverage") -- cgit v1.3 From 768732eb2f193868f6114e9f4f6cc0b1a8c84411 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Tue, 20 Apr 2021 05:22:43 +0000 Subject: gnu: Add python-pytest-xvfb. * gnu/packages/python-check.scm (python-pytest-xvfb): New variable. --- gnu/packages/python-check.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 15dbe65473..f0b454eec9 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -40,6 +40,7 @@ #:use-module (gnu packages qt) #:use-module (gnu packages web) #:use-module (gnu packages xml) + #:use-module (gnu packages xorg) #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -886,6 +887,42 @@ for the @code{pytest} framework.") rounds that are calibrated to the chosen timer.") (license license:bsd-2))) +(define-public python-pytest-xvfb + (package + (name "python-pytest-xvfb") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-xvfb" version)) + (sha256 + (base32 "1kyq5rg27dsnj7dc6x9y7r8vwf8rc88y2ppnnw6r96alw0nn9fn4")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + (add-before 'build 'prepare-tests + (lambda _ + (system "Xvfb &") + (setenv "DISPLAY" ":0") + + ;; This test is meant to run on Windows. + (delete-file "tests/test_xvfb_windows.py") + #t))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner) + ("xorg-server" ,xorg-server-for-tests))) + (propagated-inputs + `(("python-pyvirtualdisplay" + ,python-pyvirtualdisplay))) + (home-page "https://github.com/The-Compiler/pytest-xvfb") + (synopsis "Pytest plugin to run Xvfb for tests") + (description + "This package provides a Pytest plugin to run Xvfb for tests.") + (license license:expat))) + (define-public python-pytest-services (package (name "python-pytest-services") -- cgit v1.3 From e7e2b1c10b9a779ac7938909dbfafbc739740363 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 16 May 2021 18:08:44 -0400 Subject: gnu: Add python-tappy. * gnu/packages/python-check.scm (python-tappy): New variable. --- gnu/packages/python-check.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index f0b454eec9..1206dda5c4 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -48,6 +48,25 @@ #:use-module (guix download) #:use-module (guix build-system python)) +(define-public python-tappy + (package + (name "python-tappy") + (version "3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tap.py" version)) + (sha256 + (base32 + "0w4w6pqjkv54j7rv6vdrpfxa72c5516bnlhpcqr3vrb4zpmyxvpm")))) + (build-system python-build-system) + (home-page "https://github.com/python-tap/tappy") + (synopsis "Tools for Test Anything Protocol") + (description "Tappy is a set of tools for working with the Test Anything +Protocol (TAP) in Python. TAP is a line based test protocol for recording test +data in a standard way.") + (license license:bsd-3))) + (define-public python-pytest-click (package (name "python-pytest-click") -- cgit v1.3 From 5d4bd2ee94075a1c9abb12d16c62edddf9bb006c Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Tue, 25 May 2021 10:17:53 +0200 Subject: gnu: Add python-pytest-mp. * gnu/packages/python-check.scm (python-pytest-mp): New variable. --- gnu/packages/python-check.scm | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 1206dda5c4..122098ae17 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2019, 2020 Efraim Flashner ;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer -;;; Copyright © 2019 Hartmut Goebel +;;; Copyright © 2019, 2021 Hartmut Goebel ;;; Copyright © 2020 Julien Lepiller ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Edouard Klein @@ -1482,3 +1482,40 @@ allows one to create a set of tests using @emph{pairwise combinations} method, reducing a number of combinations of variables into a lesser set that covers most situations.") (license license:expat))) + +(define-public python-pytest-mp + (package + (name "python-pytest-mp") + (version "0.0.4p2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ansible/pytest-mp") + (commit "49a8ff2ca9ef62d8c86854ab31d6b5d5d6cf3f28"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01v98b6n3yvkfmxf2v38xk5ijqlk6ika0yljwkhl5bh6qhq23498")))) + (build-system python-build-system) + (propagated-inputs + `(("python-pytest" ,python-pytest) + ("python-psutil" ,python-psutil))) + (arguments + ;; tests require setuptools-markdown, which is deprecated and not in guix + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-useless-requirements + (lambda _ + (substitute* "setup.py" + ((" setup_requires=") " #"))))))) + (home-page "https://github.com/ansible/pytest-mp") + (synopsis "Segregate tests into several processes") + (description "pytest-mp is a minimalist approach to distribute and +segregate pytest tests across processes using python's multiprocessing library +and is heavily inspired by pytest-concurrent and pytest-xdist. As a very +early beta, it doesn't pledge or intend to support the majority of platforms +or use cases. Design is based on supporting slow, io-bound testing with often +tedious system under test configuration that can benefit from running several +tests at one time.") + (license license:expat))) -- cgit v1.3 From 4933641bb1df52aea9299087f1f94c2eba4a85c4 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 28 Jun 2021 12:17:59 +0200 Subject: gnu: python-coveralls: Update to 3.1.0. * gnu/packages/python-check.scm (python-coveralls): Update to 3.1.0. [arguments]: Remove trailing #t's. [native-inputs]: Add PYTHON-RESPONSES. --- gnu/packages/python-check.scm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 122098ae17..2a4f50ad46 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -116,7 +116,7 @@ are useful when writing automated tests in Python.") (define-public python-coveralls (package (name "python-coveralls") - (version "1.11.1") + (version "3.1.0") (home-page "https://github.com/coveralls-clients/coveralls-python") (source (origin @@ -126,21 +126,19 @@ are useful when writing automated tests in Python.") (file-name (git-file-name name version)) (sha256 (base32 - "1zr1lqdjcfwj6wcx2449mzzjq8bbhwnqcm5vdif5s8hlz35bjxkp")))) + "1rpdv7rhs4xy6q4s63krrfhwihli9vla0qsw64vls0naail9yjn3")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (add-before 'check 'disable-git-test (lambda _ ;; Remove test that requires 'git' and the full checkout. - (delete-file "tests/git_test.py") - #t)) + (delete-file "tests/git_test.py"))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (invoke "pytest" "-vv") - (format #t "test suite not run~%")) - #t))))) + (format #t "test suite not run~%"))))))) (propagated-inputs `(("python-coverage" ,python-coverage) ("python-docopt" ,python-docopt) @@ -148,7 +146,8 @@ are useful when writing automated tests in Python.") ("python-requests" ,python-requests))) (native-inputs `(("python-mock" ,python-mock) - ("python-pytest" ,python-pytest))) + ("python-pytest" ,python-pytest) + ("python-responses" ,python-responses))) (synopsis "Show coverage stats online via coveralls.io") (description "Coveralls.io is a service for publishing code coverage statistics online. -- cgit v1.3 From d7ffc535c52f49177a8e5553569cdb1e321b5bc6 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 9 Aug 2021 09:53:09 +0300 Subject: gnu: python-coveralls: Update to 3.2.0. * gnu/packages/python-check.scm (python-coveralls): Update to 3.2.0. --- gnu/packages/python-check.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 2a4f50ad46..038ca177af 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -116,7 +116,7 @@ are useful when writing automated tests in Python.") (define-public python-coveralls (package (name "python-coveralls") - (version "3.1.0") + (version "3.2.0") (home-page "https://github.com/coveralls-clients/coveralls-python") (source (origin @@ -126,7 +126,7 @@ are useful when writing automated tests in Python.") (file-name (git-file-name name version)) (sha256 (base32 - "1rpdv7rhs4xy6q4s63krrfhwihli9vla0qsw64vls0naail9yjn3")))) + "1915ab77nfb1rfw4i2ps0zy19wpf20lwxn81qxxbwyd2gy7m0fn8")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases -- cgit v1.3 From 43a6152432259865e489fa4a62ce94e33376bf79 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 27 Aug 2021 17:56:43 +0200 Subject: gnu: Add python-pytest-console-scripts. * gnu/packages/python-check.scm (python-pytest-console-scripts): New variable. --- gnu/packages/python-check.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 038ca177af..8577c8a15c 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1100,6 +1100,39 @@ also ensuring that the notebooks are running without errors.") "This pytest plugin provides fixtures to simplify Flask app testing.") (license license:expat))) +(define-public python-pytest-console-scripts + (package + (name "python-pytest-console-scripts") + (version "1.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-console-scripts" version)) + (sha256 + (base32 + "073l2cz11013dl30zjr575ms78j9b2bsbdl1w0gmig37spbkh8aa")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "--verbose" + ;; This one test fails because of PATH assumptions + "-k" "not test_elsewhere_in_the_path"))))))) + (propagated-inputs + `(("python-mock" ,python-mock) + ("python-pytest" ,python-pytest))) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/kvas-it/pytest-console-scripts") + (synopsis "Pytest plugin for testing console scripts") + (description + "This package provides a pytest plugin for testing console scripts.") + (license license:expat))) + (define-public python-pytest-env (package (name "python-pytest-env") -- cgit v1.3 From c7d5e1a24c4805f02b7d9dd87cc8810264bdc7d2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 27 Aug 2021 17:56:51 +0200 Subject: gnu: Add python-pytest-tornasync. * gnu/packages/python-check.scm (python-pytest-tornasync): New variable. --- gnu/packages/python-check.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 8577c8a15c..b8d63b8479 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1133,6 +1133,38 @@ also ensuring that the notebooks are running without errors.") "This package provides a pytest plugin for testing console scripts.") (license license:expat))) +(define-public python-pytest-tornasync + (package + (name "python-pytest-tornasync") + (version "0.6.0.post2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-tornasync" version)) + (sha256 + (base32 + "0pdyddbzppkfqwa7g17sdfl4w2v1hgsky78l8f4c1rx2a7cvd0fp")))) + (build-system python-build-system) + (arguments + `(#:tests? #false ; TODO: fails at "from test import MESSAGE, PAUSE_TIME" + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "--verbose"))))))) + (propagated-inputs + `(("python-pytest" ,python-pytest) + ("python-tornado" ,python-tornado))) + (home-page "https://github.com/eukaryote/pytest-tornasync") + (synopsis "Pytest plugin for testing Tornado code") + (description + "This package provides a simple pytest plugin that provides some helpful +fixtures for testing Tornado (version 5.0 or newer) apps and easy handling of +plain (undecoratored) native coroutine tests.") + (license license:expat))) + (define-public python-pytest-env (package (name "python-pytest-env") -- cgit v1.3 From c2aa39d3ede5dd4e564997f434bed70395c6bb85 Mon Sep 17 00:00:00 2001 From: raingloom Date: Tue, 21 Sep 2021 01:13:19 +0200 Subject: gnu: Update python-mypy to 0.910. * gnu/packages/python-check.scm (python-mypy): Update to 0.910. [arguments]: Make --without-tests work with custom check phase. [propagated-inputs]: Add python-toml to fix missing import in mypyc. Signed-off-by: Efraim Flashner --- gnu/packages/python-check.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index b8d63b8479..eeaedb9927 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1343,7 +1343,7 @@ supported by the MyPy typechecker.") (define-public python-mypy (package (name "python-mypy") - (version "0.790") + (version "0.910") (source (origin ;; Because of https://github.com/python/mypy/issues/9584, the @@ -1360,14 +1360,15 @@ supported by the MyPy typechecker.") (file-name (git-file-name name version)) (sha256 (base32 - "0zq3lpdf9hphcklk40wz444h8w3dkhwa12mqba5j9lmg11klnhz7")))) + "16ryn9d48ilcs3yrkrm9ynx36qnv0gkdkc4sbafpagcqgr2f0mrg")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (invoke "pytest" "mypyc")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "mypyc"))))))) (native-inputs `(("python-attrs" ,python-attrs) ("python-flake8" ,python-flake8) @@ -1383,6 +1384,7 @@ supported by the MyPy typechecker.") ("python-virtualenv" ,python-virtualenv))) (propagated-inputs `(("python-mypy-extensions" ,python-mypy-extensions) + ("python-toml" ,python-toml) ("python-typing-extensions" ,python-typing-extensions) ("python-typed-ast" ,python-typed-ast))) (home-page "http://www.mypy-lang.org/") -- cgit v1.3 From 34cf1f451e30727b8af1de8c5e033852664e30a1 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 28 Sep 2021 22:25:39 -0400 Subject: gnu: Add python-pytest-csv. * gnu/packages/python-check.scm (python-pytest-csv): New variable. --- gnu/packages/python-check.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index eeaedb9927..de0a98978a 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -88,6 +88,43 @@ data in a standard way.") interfaces with pytest.") (license license:expat))) +(define-public python-pytest-csv + (package + (name "python-pytest-csv") + (version "3.0.0") + (source + (origin + (method git-fetch) ;no tests in PyPI archive + (uri (git-reference + (url "https://github.com/nicoulaj/pytest-csv") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "17518f2fn5l98lyk9p8r7215c1whi61imzrh6ahrmcksr8w0zz04")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest"))))))) + (native-inputs + `(("python-pytest-flake8" ,python-pytest-flake8) + ("python-pytest-xdist" ,python-pytest-xdist-next) + ("python-tabulate" ,python-tabulate))) + (propagated-inputs + `(("python-pytest" ,python-pytest-6) + ("python-six" ,python-six))) + (home-page "https://github.com/nicoulaj/pytest-csv") + (synopsis "CSV reporter for Pytest") + (description "This packages provides a plugin for Pytest that enables a +CSV output mode for Pytest. It can be enabled via the @option{--csv} option +it adds to the Pytest command line interface (CLI).") + (license license:gpl3+))) + (define-public python-testfixtures (package (name "python-testfixtures") -- cgit v1.3 From e2c58b91500b4df0979a6e823fc66b0ed1da2d84 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 30 Sep 2021 10:27:55 -0400 Subject: gnu: Add python-pytest-repeat. * gnu/packages/python-check.scm (python-pytest-repeat): New variable. --- gnu/packages/python-check.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index de0a98978a..d5ebb918b8 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -553,6 +553,35 @@ developers to control unit tests that require access to data from the internet.") (license license:bsd-3))) +(define-public python-pytest-repeat + (package + (name "python-pytest-repeat") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-repeat" version)) + (sha256 + (base32 "0nxdbghjz6v4xidl5ky9wlx6z4has3vygj5r7va5ccdb8nbjilsw")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs + `(("python-pytest" ,python-pytest))) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/pytest-dev/pytest-repeat") + (synopsis "Pytest plugin for repeating tests") + (description "@code{pytest-repeat} is a plugin for Pytest that makes it +enables repeating a single test, or multiple tests, a specific number of +times.") + (license license:mpl2.0))) + (define-public python-pytest-mpl (package (name "python-pytest-mpl") -- cgit v1.3 From 1aa7f017e84491c83e4e90121a31ece6383abe2b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 1 Oct 2021 09:54:02 -0400 Subject: gnu: Add python-pytest-exploratory. * gnu/packages/python-check.scm (python-pytest-exploratory): New variable. --- gnu/packages/python-check.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index d5ebb918b8..8252f02182 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -418,6 +418,35 @@ are too large to conveniently hard-code them in the tests.") advanced doctest support and enables the testing of reStructuredText files.") (license license:bsd-3))) +(define-public python-pytest-exploratory + (package + (name "python-pytest-exploratory") + (version "0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest_exploratory" version)) + (sha256 + (base32 "159rcqv6wrdqdlag1gz39n6fk58232hbxshan043ljgpp1qfs6xk")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "tests"))))))) + (propagated-inputs + `(("python-ipython" ,python-ipython) + ("python-py" ,python-py) + ("python-pytest" ,python-pytest))) + (native-inputs `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/nokia/pytest-exploratory") + (synopsis "Interactive console for Pytest") + (description "This Pytest plugin provides an IPython extension that allows +for interactively selecting and running Pytest tests.") + (license license:expat))) + (define-public python-pytest-filter-subpackage (package (name "python-pytest-filter-subpackage") -- cgit v1.3