summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm83
1 files changed, 76 insertions, 7 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 5436a878c65..b1af78d4f83 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1,7 +1,7 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net> 2;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
3;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> 3;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
4;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il> 4;;; Copyright © 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
5;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> 5;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
6;;; Copyright © 2019, 2021 Hartmut Goebel <h.goebel@crazy-compilers.com> 6;;; Copyright © 2019, 2021 Hartmut Goebel <h.goebel@crazy-compilers.com>
7;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu> 7;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
@@ -116,7 +116,7 @@ are useful when writing automated tests in Python.")
116(define-public python-coveralls 116(define-public python-coveralls
117 (package 117 (package
118 (name "python-coveralls") 118 (name "python-coveralls")
119 (version "3.1.0") 119 (version "3.2.0")
120 (home-page "https://github.com/coveralls-clients/coveralls-python") 120 (home-page "https://github.com/coveralls-clients/coveralls-python")
121 (source 121 (source
122 (origin 122 (origin
@@ -126,7 +126,7 @@ are useful when writing automated tests in Python.")
126 (file-name (git-file-name name version)) 126 (file-name (git-file-name name version))
127 (sha256 127 (sha256
128 (base32 128 (base32
129 "1rpdv7rhs4xy6q4s63krrfhwihli9vla0qsw64vls0naail9yjn3")))) 129 "1915ab77nfb1rfw4i2ps0zy19wpf20lwxn81qxxbwyd2gy7m0fn8"))))
130 (build-system python-build-system) 130 (build-system python-build-system)
131 (arguments 131 (arguments
132 '(#:phases (modify-phases %standard-phases 132 '(#:phases (modify-phases %standard-phases
@@ -537,6 +537,7 @@ internet.")
537 `(("python-pytest" ,python-pytest))) 537 `(("python-pytest" ,python-pytest)))
538 (propagated-inputs 538 (propagated-inputs
539 `(("python-matplotlib" ,python-matplotlib) 539 `(("python-matplotlib" ,python-matplotlib)
540 ("python-nose" ,python-nose)
540 ("python-pillow" ,python-pillow))) 541 ("python-pillow" ,python-pillow)))
541 (home-page "https://github.com/matplotlib/pytest-mpl") 542 (home-page "https://github.com/matplotlib/pytest-mpl")
542 (synopsis "Pytest plugin to help with testing figures output from Matplotlib") 543 (synopsis "Pytest plugin to help with testing figures output from Matplotlib")
@@ -727,23 +728,26 @@ compliance.")
727(define-public python-pytest-isort 728(define-public python-pytest-isort
728 (package 729 (package
729 (name "python-pytest-isort") 730 (name "python-pytest-isort")
730 (version "0.3.1") 731 (version "2.0.0")
731 (source 732 (source
732 (origin 733 (origin
733 (method url-fetch) 734 (method url-fetch)
734 (uri (pypi-uri "pytest-isort" version)) 735 (uri (pypi-uri "pytest-isort" version))
735 (sha256 736 (sha256
736 (base32 "06myn5hhxs5yp8dqr1yjsgcnnxnsrvsqannm00bvaw0qml6ydzjb")))) 737 (base32 "05wi28zlqk3jafpjal8j523y5jcsx3xl3id9rx93qfjgkif8q6l2"))))
737 (build-system python-build-system) 738 (build-system python-build-system)
738 (arguments 739 (arguments
739 `(#:phases 740 `(#:phases
740 (modify-phases %standard-phases 741 (modify-phases %standard-phases
741 (replace 'check 742 (replace 'check
742 (lambda _ 743 (lambda* (#:key tests? #:allow-other-keys)
743 (invoke "pytest")))))) 744 (when tests?
745 (invoke "pytest")))))))
744 (propagated-inputs 746 (propagated-inputs
745 `(("python-isort" ,python-isort) 747 `(("python-isort" ,python-isort)
746 ("python-pytest" ,python-pytest))) 748 ("python-pytest" ,python-pytest)))
749 (native-inputs
750 `(("python-mock" ,python-mock)))
747 (home-page "https://github.com/moccu/pytest-isort/") 751 (home-page "https://github.com/moccu/pytest-isort/")
748 (synopsis "Pytest plugin to check import ordering using isort") 752 (synopsis "Pytest plugin to check import ordering using isort")
749 (description 753 (description
@@ -1097,6 +1101,71 @@ also ensuring that the notebooks are running without errors.")
1097 "This pytest plugin provides fixtures to simplify Flask app testing.") 1101 "This pytest plugin provides fixtures to simplify Flask app testing.")
1098 (license license:expat))) 1102 (license license:expat)))
1099 1103
1104(define-public python-pytest-console-scripts
1105 (package
1106 (name "python-pytest-console-scripts")
1107 (version "1.2.0")
1108 (source
1109 (origin
1110 (method url-fetch)
1111 (uri (pypi-uri "pytest-console-scripts" version))
1112 (sha256
1113 (base32
1114 "073l2cz11013dl30zjr575ms78j9b2bsbdl1w0gmig37spbkh8aa"))))
1115 (build-system python-build-system)
1116 (arguments
1117 `(#:phases
1118 (modify-phases %standard-phases
1119 (replace 'check
1120 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1121 (when tests?
1122 (add-installed-pythonpath inputs outputs)
1123 (invoke "pytest" "--verbose"
1124 ;; This one test fails because of PATH assumptions
1125 "-k" "not test_elsewhere_in_the_path")))))))
1126 (propagated-inputs
1127 `(("python-mock" ,python-mock)
1128 ("python-pytest" ,python-pytest)))
1129 (native-inputs
1130 `(("python-setuptools-scm" ,python-setuptools-scm)))
1131 (home-page "https://github.com/kvas-it/pytest-console-scripts")
1132 (synopsis "Pytest plugin for testing console scripts")
1133 (description
1134 "This package provides a pytest plugin for testing console scripts.")
1135 (license license:expat)))
1136
1137(define-public python-pytest-tornasync
1138 (package
1139 (name "python-pytest-tornasync")
1140 (version "0.6.0.post2")
1141 (source
1142 (origin
1143 (method url-fetch)
1144 (uri (pypi-uri "pytest-tornasync" version))
1145 (sha256
1146 (base32
1147 "0pdyddbzppkfqwa7g17sdfl4w2v1hgsky78l8f4c1rx2a7cvd0fp"))))
1148 (build-system python-build-system)
1149 (arguments
1150 `(#:tests? #false ; TODO: fails at "from test import MESSAGE, PAUSE_TIME"
1151 #:phases
1152 (modify-phases %standard-phases
1153 (replace 'check
1154 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1155 (when tests?
1156 (add-installed-pythonpath inputs outputs)
1157 (invoke "pytest" "--verbose")))))))
1158 (propagated-inputs
1159 `(("python-pytest" ,python-pytest)
1160 ("python-tornado" ,python-tornado)))
1161 (home-page "https://github.com/eukaryote/pytest-tornasync")
1162 (synopsis "Pytest plugin for testing Tornado code")
1163 (description
1164 "This package provides a simple pytest plugin that provides some helpful
1165fixtures for testing Tornado (version 5.0 or newer) apps and easy handling of
1166plain (undecoratored) native coroutine tests.")
1167 (license license:expat)))
1168
1100(define-public python-pytest-env 1169(define-public python-pytest-env
1101 (package 1170 (package
1102 (name "python-pytest-env") 1171 (name "python-pytest-env")