From 25ac4aeef474b077ad0053bd32404938d49cd49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Wed, 18 Feb 2026 02:13:59 +0900 Subject: [PATCH] gnu: Add python-pysrt. * gnu/packages/python-xyz.scm (python-pysrt): New variable. Change-Id: I270b62d5888d814e1b44c84dfe991c92b30fab90 Signed-off-by: Liliana Marie Prikler --- gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index cce5209c1d..04d2b5bf6e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -9098,6 +9098,31 @@ any @file{.pug} source into different template languages: Django, Jinja2, Mako, and Tornado.") (license license:expat))) ;; MIT +(define-public python-pysrt + (package + (name "python-pysrt") + (version "1.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/byroot/pysrt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg")))) + (build-system pyproject-build-system) + (arguments (list #:test-backend #~'unittest)) + (propagated-inputs (list python-chardet)) + (native-inputs (list python-setuptools)) + (home-page "https://github.com/byroot/pysrt") + (synopsis "SubRip Text subtitle parser and writer") + (description + "This package provides a Python library to edit or create +SubRip Text files, and additionally a command-line program @command{srt} +to shift, split or rescale them.") + (license license:gpl3+))) + (define-public python-pystache (package (name "python-pystache")