diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-09-28 22:25:39 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-09-28 22:25:39 -0400 |
commit | 34cf1f451e30727b8af1de8c5e033852664e30a1 (patch) | |
tree | 2f0f10463edec511d587e18c78eafefc6fdeef88 /gnu | |
parent | cf2b021e604d48cb415d3f711e37155f7f1e79a3 (diff) | |
download | guix-34cf1f451e30727b8af1de8c5e033852664e30a1.tar.gz guix-34cf1f451e30727b8af1de8c5e033852664e30a1.zip |
gnu: Add python-pytest-csv.
* gnu/packages/python-check.scm (python-pytest-csv): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-check.scm | 37 |
1 files changed, 37 insertions, 0 deletions
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") |