diff --git a/srcpkgs/mnamer/patches/requests-cache.patch b/srcpkgs/mnamer/patches/requests-cache.patch deleted file mode 100644 index 542e40f90ea1f9..00000000000000 --- a/srcpkgs/mnamer/patches/requests-cache.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- a/mnamer/utils.py 2023-08-15 21:24:08.000000000 +0200 -+++ b/mnamer/utils.py 2025-08-09 11:16:52.264564049 +0200 -@@ -256,7 +256,7 @@ - "like Gecko) Chrome/79.0.3945.88 Safari/537.36" - ) - -- initial_cache_state = session._disabled # yes, i'm a bad person -+ initial_cache_state = getattr(session, "_disabled", False) # patched for requests-cache>=1.0 - try: - session._disabled = not cache - response = session.request( - -From 634d56361e967adcd81c3cb839458d3aea99e5db Mon Sep 17 00:00:00 2001 -From: Skid <26208369+skid9000@users.noreply.github.com> -Date: Sun, 22 Feb 2026 20:28:03 +0100 -Subject: [PATCH] Fix requests_cache version check for 1.3.0 - -Using the same method provided here : https://github.com/requests-cache/requests-cache/commit/61fae61e07222777eb26a6fb670c4ee6a9cdddb7 ---- - mnamer/const.py | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/mnamer/const.py b/mnamer/const.py -index 66510ebf..bf321f41 100644 ---- a/mnamer/const.py -+++ b/mnamer/const.py -@@ -4,6 +4,7 @@ - from pathlib import Path - from platform import platform, python_version - from sys import argv, gettrace, version_info -+from importlib.metadata import version as pkg_version, PackageNotFoundError - - VERSION: str - -@@ -37,8 +38,8 @@ - requests_version = "N/A" - - try: -- from requests_cache import __version__ as requests_cache_version --except ModuleNotFoundError: -+ requests_cache_version = pkg_version('requests_cache') -+except PackageNotFoundError: - requests_cache_version = "N/A" - - try: diff --git a/srcpkgs/mnamer/template b/srcpkgs/mnamer/template index d9ad291bc4ea1e..9aa2568250cf41 100644 --- a/srcpkgs/mnamer/template +++ b/srcpkgs/mnamer/template @@ -1,18 +1,18 @@ # Template file for 'mnamer' pkgname=mnamer -version=2.6.0 -revision=2 +version=2.7.0 +revision=1 build_style=python3-pep517 hostmakedepends="python3-poetry-core python3-setuptools_scm python3-wheel" depends="python3-appdirs python3-babelfish python3-guessit python3-requests python3-requests-cache python3-setuptools_scm - python3-teletype python3-typing_extensions" + python3-teletype" short_desc="Intelligent and highly configurable media organization utility" maintainer="Mateusz Sylwestrzak " license="MIT" homepage="https://github.com/jkwill87/mnamer" distfiles="${PYPI_SITE}/m/mnamer/mnamer-${version}.tar.gz" -checksum=0af4f0fa681f59a43fabbc0f7fcf488b6bd8ed120ae0d52d2eb72be3d066a993 +checksum=26c0c9395e86a9bf7e7db0b77981d0d93da3dd355401ebc6f9a9ba6d22c7182c post_install() { vlicense LICENSE.txt