diff --git a/srcpkgs/calibre/patches/0001-polyglot-don-t-try-to-import-plistlib.Data.patch b/srcpkgs/calibre/patches/0001-polyglot-don-t-try-to-import-plistlib.Data.patch new file mode 100644 index 00000000000..6567029cd48 --- /dev/null +++ b/srcpkgs/calibre/patches/0001-polyglot-don-t-try-to-import-plistlib.Data.patch @@ -0,0 +1,27 @@ +From 238680060c9ab66f87b2d4f4bddc033083b2af4d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= + +Date: Mon, 2 Nov 2020 07:17:07 +0700 +Subject: [PATCH] polyglot: don't try to import plistlib.Data + +plistlib.Data is deprecated from Python 3.4 and fully removed in Python +3.9. + +Skimming over the code, it's look like nothing uses this data structure. + +Let's remove it. +--- + src/polyglot/plistlib.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git src/polyglot/plistlib.py src/polyglot/plistlib.py +index e1a5b8b16a..c55811e909 100644 +--- src/polyglot/plistlib.py ++++ src/polyglot/plistlib.py +@@ -2,5 +2,5 @@ + # vim:fileencoding=utf-8 + # License: GPL v3 Copyright: 2019, Kovid Goyal + +-from plistlib import loads, dumps, Data # noqa ++from plistlib import loads, dumps # noqa + loads_binary_or_xml = loads diff --git a/srcpkgs/calibre/template b/srcpkgs/calibre/template index 42209a13011..77de483b865 100644 --- a/srcpkgs/calibre/template +++ b/srcpkgs/calibre/template @@ -1,6 +1,6 @@ # Template file for 'calibre' pkgname=calibre -version=5.4.1 +version=5.4.2 revision=1 build_style=python3-module pycompile_dirs="/usr/lib/calibre/" @@ -26,7 +26,7 @@ license="GPL-3.0-only" homepage="https://calibre-ebook.com" changelog="https://raw.githubusercontent.com/kovidgoyal/calibre/master/Changelog.yaml" distfiles="https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz" -checksum=121d8d742a17f8f44034ca0766154c6d8aaf9a5016ed42959fdb44074d9bdfb8 +checksum=e6bc37cbcfecf06d5d6d8cab132e6e4896a1bbade4e5385f26975111f1c0f517 lib32disabled=yes nocross=yes