From 3d2a81da9a615b2226c4dfb22ec0027a460d2a06 Mon Sep 17 00:00:00 2001 From: icp Date: Thu, 22 Sep 2022 01:29:51 +0530 Subject: [PATCH 1/3] python3-keyring: update to 23.9.3. Adopt. --- srcpkgs/python3-keyring/template | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/srcpkgs/python3-keyring/template b/srcpkgs/python3-keyring/template index 35b44a7380a2..908e160000ec 100644 --- a/srcpkgs/python3-keyring/template +++ b/srcpkgs/python3-keyring/template @@ -1,20 +1,19 @@ # Template file for 'python3-keyring' pkgname=python3-keyring -version=23.7.0 +version=23.9.3 revision=1 wrksrc="keyring-${version}" build_style=python3-pep517 hostmakedepends="python3-wheel python3-setuptools_scm" -depends="python3-SecretStorage" -checkdepends="python3-pytest - python3-pytest-flake8 python3-pytest-cov" +depends="python3-SecretStorage python3-jeepney python3-jaraco.classes" +checkdepends="${depends} python3-pytest-xdist" short_desc="Python interface to the system keyring service" -maintainer="Orphaned " +maintainer="icp " license="MIT" homepage="https://github.com/jaraco/keyring" changelog="https://raw.githubusercontent.com/jaraco/keyring/master/CHANGES.rst" distfiles="${PYPI_SITE}/k/keyring/keyring-${version}.tar.gz" -checksum=782e1cd1132e91bf459fcd243bcf25b326015c1ac0b198e4408f91fa6791062b +checksum=69b01dd83c42f590250fe7a1f503fc229b14de83857314b1933a3ddbf595c4a5 post_install() { vlicense LICENSE From 3feb277f3c8c4c0a8c3503724fb6f95750fa06fa Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 24 Sep 2022 01:34:48 +0530 Subject: [PATCH 2/3] coursera-dl: patch for python3>=3.9 --- .../patches/fix-upstream-issue-778.patch | 48 +++++++++++++++++++ srcpkgs/coursera-dl/template | 8 ++-- 2 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/coursera-dl/patches/fix-upstream-issue-778.patch diff --git a/srcpkgs/coursera-dl/patches/fix-upstream-issue-778.patch b/srcpkgs/coursera-dl/patches/fix-upstream-issue-778.patch new file mode 100644 index 000000000000..659d936a9c43 --- /dev/null +++ b/srcpkgs/coursera-dl/patches/fix-upstream-issue-778.patch @@ -0,0 +1,48 @@ +From c8796e567698be166cb15f54e095140c1a9b567e Mon Sep 17 00:00:00 2001 +From: "Heino H. Gehlsen" +Date: Sun, 27 Dec 2020 13:28:35 +0100 +Subject: [PATCH] Fix AttributeError: 'HTMLParser' object has no attribute + 'unescape' + +https://github.com/coursera-dl/coursera-dl/pull/789 +--- + coursera/utils.py | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +diff --git a/coursera/utils.py b/coursera/utils.py +index 9ba577af..f271bb9f 100644 +--- a/coursera/utils.py ++++ b/coursera/utils.py +@@ -21,7 +21,11 @@ + + import six + from six import iteritems +-from six.moves import html_parser ++if six.PY34: ++ import html ++else: ++ from six.moves import html_parser ++ html = html_parser.HTMLParser() + from six.moves.urllib.parse import ParseResult + from six.moves.urllib_parse import unquote_plus + +@@ -98,8 +102,7 @@ def random_string(length): + + + def unescape_html(s): +- h = html_parser.HTMLParser() +- s = h.unescape(s) ++ s = html.unescape(s) + s = unquote_plus(s) + return unescape(s, HTML_UNESCAPE_TABLE) + +@@ -114,8 +117,7 @@ def clean_filename(s, minimal_change=False): + """ + + # First, deal with URL encoded strings +- h = html_parser.HTMLParser() +- s = h.unescape(s) ++ s = html.unescape(s) + s = unquote_plus(s) + + # Strip forbidden characters diff --git a/srcpkgs/coursera-dl/template b/srcpkgs/coursera-dl/template index 9c569678e49c..a79cecd680d1 100644 --- a/srcpkgs/coursera-dl/template +++ b/srcpkgs/coursera-dl/template @@ -1,16 +1,16 @@ # Template file for 'coursera-dl' pkgname=coursera-dl version=0.11.5 -revision=3 +revision=4 build_style=python3-module -pycompile_module="coursera" hostmakedepends="python3-setuptools" depends="python3-attrs python3-setuptools python3-pyasn1 python3-ConfigArgParse python3-BeautifulSoup4 python3-requests python3-six python3-keyring python3-urllib3" +checkdepends="${depends} python3-keyrings-alt python3-mock python3-pytest-xdist" short_desc="Script for downloading Coursera.org videos and naming them" maintainer="Orphaned " license="LGPL-3.0-or-later" homepage="https://github.com/coursera-dl/coursera-dl" -distfiles="${PYPI_SITE}/c/coursera-dl/coursera-dl-${version}.tar.gz" -checksum=66a84558dfcfcbdc487dcabcfc0d7c4a8569cc604b051b1d51bc95d52a369745 +distfiles="https://github.com/coursera-dl/coursera-dl/archive/refs/tags/${version}.tar.gz" +checksum=27e382435084ec91ef89ab6c1d46f4756b708e4badf5307a8f18b9ad31971014 From 9f7924281e5d6750fdf74285917f827d3dabc6d1 Mon Sep 17 00:00:00 2001 From: icp Date: Tue, 4 Oct 2022 20:26:47 +0530 Subject: [PATCH 3/3] Komikku: fix appdata file --- .../Komikku/patches/fix-appdata-file.patch | 39 +++++++++++++++++++ srcpkgs/Komikku/template | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/Komikku/patches/fix-appdata-file.patch diff --git a/srcpkgs/Komikku/patches/fix-appdata-file.patch b/srcpkgs/Komikku/patches/fix-appdata-file.patch new file mode 100644 index 000000000000..f43a189bef7d --- /dev/null +++ b/srcpkgs/Komikku/patches/fix-appdata-file.patch @@ -0,0 +1,39 @@ +--- a/data/info.febvre.Komikku.appdata.xml.in ++++ b/data/info.febvre.Komikku.appdata.xml.in +@@ -49,28 +49,28 @@ + + + +- https://gitlab.com/valos/Komikku/raw/master/screenshots/library.png ++ https://gitlab.com/valos/Komikku/raw/main/screenshots/library.png + + +- https://gitlab.com/valos/Komikku/raw/master/screenshots/library-with-categories.png ++ https://gitlab.com/valos/Komikku/raw/main/screenshots/library-with-categories.png + + +- https://gitlab.com/valos/Komikku/raw/master/screenshots/preferences.png ++ https://gitlab.com/valos/Komikku/raw/main/screenshots/preferences.png + + +- https://gitlab.com/valos/Komikku/raw/master/screenshots/explorer.png ++ https://gitlab.com/valos/Komikku/raw/main/screenshots/explorer.png + + +- https://gitlab.com/valos/Komikku/raw/master/screenshots/categories-editor.png ++ https://gitlab.com/valos/Komikku/raw/main/screenshots/categories-editor.png + + +- https://gitlab.com/valos/Komikku/raw/master/screenshots/card-info.png ++ https://gitlab.com/valos/Komikku/raw/main/screenshots/card-info.png + + +- https://gitlab.com/valos/Komikku/raw/master/screenshots/card-chapters.png ++ https://gitlab.com/valos/Komikku/raw/main/screenshots/card-chapters.png + + +- https://gitlab.com/valos/Komikku/raw/master/screenshots/reader.png ++ https://gitlab.com/valos/Komikku/raw/main/screenshots/reader.png + + + diff --git a/srcpkgs/Komikku/template b/srcpkgs/Komikku/template index 0b66eb387e75..0fd7cdf7d015 100644 --- a/srcpkgs/Komikku/template +++ b/srcpkgs/Komikku/template @@ -1,7 +1,7 @@ # Template file for 'Komikku' pkgname=Komikku version=0.40.0 -revision=1 +revision=2 wrksrc=Komikku-v${version} build_style=meson hostmakedepends="gettext glib-devel gobject-introspection pkg-config"