Package Details: python-srt 3.5.3-1

Git Clone URL: https://aur.archlinux.org/python-srt.git (read-only, click to copy)
Package Base: python-srt
Description: Tools and python library for parsing, modifying, and composing SRT files
Upstream URL: https://github.com/cdown/srt/
Licenses: MIT
Conflicts: python-pysrt
Submitter: kugland
Maintainer: dbermond
Last Packager: dbermond
Votes: 9
Popularity: 1.47
First Submitted: 2020-02-20 05:08 (UTC)
Last Updated: 2023-06-17 21:00 (UTC)

Latest Comments

bpierre commented on 2024-04-29 13:07 (UTC)

I think, rather than marking the package as conflicting with python-pysrt, the srt script can be removed: if you look at it, it's just a small wrapper for calling the other installed scripts (Cf. https://github.com/cdown/srt/blob/develop/srt_tools/srt).

 PKGBUILD | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git i/PKGBUILD w/PKGBUILD
index d836b62..1fa8637 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -11,7 +11,6 @@ license=('MIT')
 depends=('python')
 makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
 checkdepends=('python-hypothesis' 'python-pytest')
-conflicts=('python-pysrt')
 source=("https://github.com/cdown/srt/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
 sha256sums=('aca9b201ce4cace273cd4d129f4f002d4d43f9c159bed1fd8bea848611185f4d')

@@ -27,7 +26,9 @@ check() {

 package() {
     python -m installer --destdir="$pkgdir" "srt-${pkgver}/dist"/*.whl
-    
+    # The `srt` script (is a small wrapper calling the other scripts)
+    # conflicts with the one provided by `python-pysrt`, so drop it.
+    rm -f "${pkgdir}/usr/bin/srt"
     local _pyver
     _pyver="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
     install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"

evorster commented on 2024-03-07 13:16 (UTC)

Hi there!

It seems that there is now also a python-srt-equalizer: https://github.com/peterk/srt_equalizer

Any chance of you creating a package for this one? (These things seem to be multiplying.... )

m040601 commented on 2020-08-22 16:43 (UTC) (edited on 2020-08-22 16:58 (UTC) by m040601)

Very usefull tool, thanks for your work providing this package.

This PKGBUILD needs an update. It might conflict with another similar tool in the official Arch packages, and create a mess on the user's system.Please edit the section.

Conflicts With :

The other very similar tool is called python-pysrt, https://www.archlinux.org/packages/community/any/python-pysrt/

pacman -Si python-pysrt

Repository      : community
Name            : python-pysrt
Version         : 1.1.2-1
Description     : Python parser for SubRip (srt) files
Architecture    : any
URL             : https://github.com/byroot/pysrt
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : python-chardet
Optional Deps   : python-setuptools: for srt script
Conflicts With  : None
Replaces        : None
Download Size   : 26.18 KiB
Installed Size  : 101.22 KiB
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Wed 22 Jan 2020 04:14:39 PM WET
Validated By    : MD5 Sum  SHA-256 Sum  Signature

Just like python-srt, this tool, python-pysrt, also wants to install a binary called "srt",

pacman -Fl python-pysrt | grep "usr.bin"

python-pysrt usr/bin/
python-pysrt usr/bin/srt

Also, additionaly, maybe consider rename this tool from python-srt to python-pysrt2 ?

kugland commented on 2020-07-14 20:01 (UTC)

aureooms, fixed.

aureooms commented on 2020-07-14 18:41 (UTC)

PKGBUILD bears version number 3.0.0 while .SRCINFO bears version number 3.3.0.