guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 66378b44bf46be56a3ef7db7457ef607a35e7248
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Sep 19 02:11:59 2026 +0100
gnu: Add python-tdir.
* gnu/packages/python-xyz.scm (python-tdir): New variable.
---
gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b08032c4ac2..26d97e980ae 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -38784,6 +38784,32 @@ You can set the following @code{tcolor} arguments:
@end itemize")
(license license:expat)))
+(define-public python-tdir
+ (package
+ (name "python-tdir")
+ (version "1.10.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rec/tdir")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "10kl0w40n53ynhxlvkv56gywswnrb2drmrw972k0p66sihlw9y2p"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-hatchling python-pytest))
+ (propagated-inputs (list python-dek python-xmod))
+ (home-page "https://rec.github.io/tdir/")
+ (synopsis "Create, fill a temporary directory")
+ (description
+ "This is Python helper module to run code inside a temporary directory
+filled with zero or more files. @code{tdir()} runs code in a temporary
+directory pre-filled with files: it can either be used as a context manager,
+or a decorator for functions or classes. @code{tdir.fill()} is a tiny
+function that recursively fills a directory.")
+ (license license:expat)))
+
(define-public python-telethon
(package
(name "python-telethon")