sharlatan pushed a commit to branch python-team
in repository guix.
commit f5f831e9a1df03e9ee0c49bfd7dfcdd507f869a6
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Nov 6 21:28:54 2024 +0000
gnu: Add python-stdio-mgr.
* gnu/packages/python-check.scm (python-stdio-mgr): New variable.
Change-Id: Ib558d2fd95bcb818b1c06f2fbfce6eaae766be8f
---
gnu/packages/python-check.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index f38dded9df..0f96f3790c 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -2471,6 +2471,38 @@ behavior-driven development (TDD and BDD).")
"@code{slotscheck} is a tool to validate Python class @code{__slots__}.")
(license license:expat)))
+(define-public python-stdio-mgr
+ (package
+ (name "python-stdio-mgr")
+ (version "1.0.1")
+ (source
+ (origin
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/bskinn/stdio-mgr")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0xb6779s7j162xhig6vc63f9nn3v406fvjh1zqbqbf8zcl17ific"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; See <https://github.com/bskinn/stdio-mgr/issues/99>.
+ #:test-flags #~(list "-k" "not readme")))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list python-attrs))
+ (home-page "https://github.com/bskinn/stdio-mgr")
+ (synopsis "Context manager for mocking/wrapping stdin/stdout/stderr")
+ (description
+ "Context manager for mocking/wrapping stdin/stdout/stderr for CLI
+applications test automation.")
+ (license license:expat)))
+
(define-public python-stestr
(package
(name "python-stestr")