summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-09-28 22:25:39 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-09-28 22:25:39 -0400
commit34cf1f451e30727b8af1de8c5e033852664e30a1 (patch)
tree2f0f10463edec511d587e18c78eafefc6fdeef88 /gnu/packages/python-check.scm
parentcf2b021e604d48cb415d3f711e37155f7f1e79a3 (diff)
gnu: Add python-pytest-csv.
* gnu/packages/python-check.scm (python-pytest-csv): New variable.
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index eeaedb9927d..de0a98978ac 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -88,6 +88,43 @@ data in a standard way.")
88interfaces with pytest.") 88interfaces with pytest.")
89 (license license:expat))) 89 (license license:expat)))
90 90
91(define-public python-pytest-csv
92 (package
93 (name "python-pytest-csv")
94 (version "3.0.0")
95 (source
96 (origin
97 (method git-fetch) ;no tests in PyPI archive
98 (uri (git-reference
99 (url "https://github.com/nicoulaj/pytest-csv")
100 (commit version)))
101 (file-name (git-file-name name version))
102 (sha256
103 (base32
104 "17518f2fn5l98lyk9p8r7215c1whi61imzrh6ahrmcksr8w0zz04"))))
105 (build-system python-build-system)
106 (arguments
107 `(#:phases
108 (modify-phases %standard-phases
109 (replace 'check
110 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
111 (when tests?
112 (add-installed-pythonpath inputs outputs)
113 (invoke "pytest")))))))
114 (native-inputs
115 `(("python-pytest-flake8" ,python-pytest-flake8)
116 ("python-pytest-xdist" ,python-pytest-xdist-next)
117 ("python-tabulate" ,python-tabulate)))
118 (propagated-inputs
119 `(("python-pytest" ,python-pytest-6)
120 ("python-six" ,python-six)))
121 (home-page "https://github.com/nicoulaj/pytest-csv")
122 (synopsis "CSV reporter for Pytest")
123 (description "This packages provides a plugin for Pytest that enables a
124CSV output mode for Pytest. It can be enabled via the @option{--csv} option
125it adds to the Pytest command line interface (CLI).")
126 (license license:gpl3+)))
127
91(define-public python-testfixtures 128(define-public python-testfixtures
92 (package 129 (package
93 (name "python-testfixtures") 130 (name "python-testfixtures")