guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

255/361: gnu: Add python-stdio-mgr.


From: guix-commits
Subject: 255/361: gnu: Add python-stdio-mgr.
Date: Fri, 22 Nov 2024 06:00:53 -0500 (EST)

andreas pushed a commit to branch python-team
in repository guix.

commit 971e28027d71d894bcc2a1b6d94b832cad077e26
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]