gnu: Add python-pytest-csv.

* gnu/packages/python-check.scm (python-pytest-csv): New variable.
This commit is contained in:
Maxim Cournoyer 2021-09-28 22:25:39 -04:00
parent cf2b021e60
commit 34cf1f451e
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -88,6 +88,43 @@ (define-public python-pytest-click
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")