gnu: Add python-face.

* gnu/packages/python-xyz.scm (python-face): New variable.

Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
This commit is contained in:
jgart 2021-09-25 03:49:05 -04:00 committed by Arun Isaac
parent 5edfa6d15e
commit ea75da9ec9
No known key found for this signature in database
GPG key ID: 2E25EE8B61802BB3

View file

@ -27182,6 +27182,45 @@ (define-public python-platformdirs
platform-specific directories, e.g. the ``user data dir''.")
(license license:expat)))
(define-public python-face
(package
(name "python-face")
(version "20.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "face" version))
(sha256
(base32 "0gpd9f0rmbv3rd2szi2na37l29fabkwazikjrxc6wca1lddwlnbx"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
;; Make installed package available for running the tests.
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
`(("python-boltons" ,python-boltons)))
(home-page "https://github.com/mahmoud/face")
(synopsis "CLI parsing and dispatching microframework")
(description "@code{python-face} is a Pythonic microframework for building
command-line applications.
@itemize
@item First-class subcommand support
@item Powerful middleware architecture
@item Separate parser layer
@item Built-in flagfile support
@item Handy testing utilities
@item Themeable help display
@end itemize")
(license license:bsd-3)))
(define-public python-box
(package
(name "python-box")