diff options
author | Wiktor Żelazny <wz@freeshell.de> | 2024-11-01 04:27:14 +0300 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-11-01 22:54:16 +0900 |
commit | 08dc72473b1c2ad06caf6a2faf21bcb7d4f5f9e5 (patch) | |
tree | 8f7c7af796ff270206daca56d96099bc8f91ee7e /gnu/packages | |
parent | 49375f83fc53f8286c5127a07d603ef7967c1b1f (diff) | |
download | guix-08dc72473b1c2ad06caf6a2faf21bcb7d4f5f9e5.tar guix-08dc72473b1c2ad06caf6a2faf21bcb7d4f5f9e5.tar.gz |
gnu: Add python-green.
* gnu/packages/python-check.scm (python-green): New variable.
Change-Id: I554e8a635ff51413c79e3834fc1b88b34bbda84b
Reviewed-by: get-state <mazin@getstate.dev>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/python-check.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index ba66b081a5..7f8e96c311 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -3003,3 +3003,50 @@ dynamic nature, static code analyzers like Vulture are likely to miss some dead code. Also, code that is only called implicitly may be reported as unused.") (license license:expat))) + +(define-public python-green + (package + (name "python-green") + (version "4.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "green" version)) + (sha256 + (base32 "1cd62nbn5dvlpnsyplp6cb24wd230san8dpm6pnl99n2kwzpq1m4")))) + (build-system pyproject-build-system) + (native-inputs + (list python-black + python-django + python-mypy + python-testtools)) + ;; The python-coverage dependency appears both in requirements.txt and + ;; requirements-dev.txt. + (propagated-inputs + (list python-colorama + python-coverage + python-lxml + python-unidecode)) + (home-page "https://github.com/CleanCut/green") + (synopsis "Clean, colorful, fast Python test runner") + (description + "@code{green} is a Python test runner that describes itself as: +@table @emph +@item Clean +Low redundancy in output. Result statistics for each test is vertically aligned. +@item Colorful +Terminal output makes good use of color when the terminal supports it. +@item Fast +Tests run in independent processes (one per processor by default). +@item Powerful +Multi-target and auto-discovery support. +@item Traditional +It uses the normal @code{unittest} classes and methods. +@item Descriptive +Multiple verbosity levels, from just dots to full docstring output. +@item Convenient +Bash-completion and ZSH-completion of options and test targets. +@item Thorough +Built-in integration with @url{http://nedbatchelder.com/code/coverage/, coverage}. +@end table") + (license license:expat))) |