diff --git a/srcpkgs/beets/patches/3eb68ef830447d91b10a928823edb3c50cf73f48.patch b/srcpkgs/beets/patches/3eb68ef830447d91b10a928823edb3c50cf73f48.patch deleted file mode 100644 index af8ad9dfba2ffd..00000000000000 --- a/srcpkgs/beets/patches/3eb68ef830447d91b10a928823edb3c50cf73f48.patch +++ /dev/null @@ -1,66 +0,0 @@ -From 3eb68ef830447d91b10a928823edb3c50cf73f48 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= -Date: Sun, 26 Oct 2025 20:37:08 +0000 -Subject: [PATCH] Use cross-platform shutil.get_terminal_size to get term_width - -This fixes Python 3.14 incompatibility. ---- - beets/ui/__init__.py | 26 +++++--------------------- - 3 files changed, 7 insertions(+), 22 deletions(-) - -diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py -index 60e2014485..fe980bb5cf 100644 ---- a/beets/ui/__init__.py -+++ b/beets/ui/__init__.py -@@ -23,8 +23,8 @@ - import optparse - import os.path - import re -+import shutil - import sqlite3 --import struct - import sys - import textwrap - import traceback -@@ -699,27 +699,11 @@ def get_replacements(): - return replacements - - --def term_width(): -+@cache -+def term_width() -> int: - """Get the width (columns) of the terminal.""" -- fallback = config["ui"]["terminal_width"].get(int) -- -- # The fcntl and termios modules are not available on non-Unix -- # platforms, so we fall back to a constant. -- try: -- import fcntl -- import termios -- except ImportError: -- return fallback -- -- try: -- buf = fcntl.ioctl(0, termios.TIOCGWINSZ, " " * 4) -- except OSError: -- return fallback -- try: -- height, width = struct.unpack("hh", buf) -- except struct.error: -- return fallback -- return width -+ columns, _ = shutil.get_terminal_size(fallback=(0, 0)) -+ return columns if columns else config["ui"]["terminal_width"].get(int) - - - def split_into_lines(string, width_tuple): ---- a/beets/ui/__init__.py -+++ b/beets/ui/__init__.py -@@ -27,6 +27,7 @@ - import textwrap - import traceback - from difflib import SequenceMatcher -+from functools import cache - from typing import Any, Callable - - import confuse diff --git a/srcpkgs/beets/template b/srcpkgs/beets/template index 2db8a7722abb89..1269834282ec20 100644 --- a/srcpkgs/beets/template +++ b/srcpkgs/beets/template @@ -1,7 +1,7 @@ # Template file for 'beets' pkgname=beets -version=2.3.1 -revision=3 +version=2.5.1 +revision=1 build_style=python3-pep517 # tests requires unpackaged librosa, pytest-flask make_check_args="--ignore=test/plugins/test_autobpm.py @@ -9,7 +9,7 @@ make_check_args="--ignore=test/plugins/test_autobpm.py hostmakedepends="python3-poetry-core python3-Sphinx" depends="python3-lap python3-musicbrainzngs python3-Unidecode python3-yaml python3-jellyfish python3-mediafile python3-confuse python3-platformdirs - python3-numpy" + python3-numpy python3-pylast python3-langdetect" checkdepends="$depends python3-BeautifulSoup4 python3-Flask python3-mock python3-pylast python3-pytest python3-pytest-cov python3-mpd2 python3-xdg python3-responses python3-requests-oauthlib python3-reflink python3-rarfile @@ -21,7 +21,7 @@ license="MIT" homepage="https://beets.io" changelog="https://raw.githubusercontent.com/beetbox/beets/master/docs/changelog.rst" distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=87598721a14af89a06d5ad3d9e8138f8ac112510271a981a90b840ed784d5712 +checksum=7feefd70804fbcf26516089f472bac34c6a77e8e20ec539252fd1bafc91de9a2 pre_check() { # https://github.com/beetbox/beets/issues/5770