[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50799] [PATCH 1/2] gnu: Add python-face.
From: |
jgart |
Subject: |
[bug#50799] [PATCH 1/2] gnu: Add python-face. |
Date: |
Sat, 25 Sep 2021 03:49:05 -0400 |
* gnu/packages/python-xyz.scm (python-face): New variable.
---
gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bfe7031eba..9e3a1144f6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26970,6 +26970,43 @@ location. This small Python module determines the
appropriate
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?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-v" "face/test")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-boltons" ,python-boltons)))
+ (home-page "https://github.com/mahmoud/face")
+ (synopsis "Straightforward CLI parsing and dispatching microframework")
+ (description
+"@code{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")
--
2.33.0