diff --git a/srcpkgs/mnamer/patches/requests-cache.patch b/srcpkgs/mnamer/patches/requests-cache.patch new file mode 100644 index 00000000000..850e9093682 --- /dev/null +++ b/srcpkgs/mnamer/patches/requests-cache.patch @@ -0,0 +1,11 @@ +--- 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( diff --git a/srcpkgs/mnamer/template b/srcpkgs/mnamer/template new file mode 100644 index 00000000000..75bfcef0605 --- /dev/null +++ b/srcpkgs/mnamer/template @@ -0,0 +1,19 @@ +# Template file for 'mnamer' +pkgname=mnamer +version=2.5.5 +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" +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=c3905b7fc03e07b5b22d92f29ce9c80cc2c2788cebe35e2297fe9f3a4ce7fbf3 + +post_install() { + vlicense LICENSE.txt +}