New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/21266#issuecomment-619404330 Comment: I would love to have this as an addition: ```diff ...arning-is-with-a-literal.-from-Python-3.8.patch | 60 ++++++++++++++++++++++ srcpkgs/alot/template | 12 ++++- 2 files changed, 71 insertions(+), 1 deletion(-) diff --git a/srcpkgs/alot/patches/0001-Fix-SyntaxWarning-is-with-a-literal.-from-Python-3.8.patch b/srcpkgs/alot/patches/0001-Fix-SyntaxWarning-is-with-a-literal.-from-Python-3.8.patch new file mode 100644 index 0000000000..6d3aaf514e --- /dev/null +++ b/srcpkgs/alot/patches/0001-Fix-SyntaxWarning-is-with-a-literal.-from-Python-3.8.patch @@ -0,0 +1,60 @@ +From 916b446317980e9794a02bfb79456da4fc2768a4 Mon Sep 17 00:00:00 2001 +From: Jordan Justen +Date: Thu, 9 Apr 2020 02:26:27 -0700 +Subject: [PATCH] Fix 'SyntaxWarning: "is" with a literal.' from Python 3.8 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +alot/alot/widgets/ansi.py:84: SyntaxWarning: "is" with a literal. Did you mean "=="? + if code is 0: +alot/alot/commands/envelope.py:762: SyntaxWarning: "is" with a literal. Did you mean "=="? + if self.action is "txt2html": +alot/alot/commands/envelope.py:768: SyntaxWarning: "is" with a literal. Did you mean "=="? + elif self.action is "html2txt": + +Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955193 +Upstream: https://github.com/pazz/alot/commit/916b446317980e9794a02bfb79456da4fc2768a4 +Signed-off-by: Jordan Justen +Signed-off-by: Đoàn Trần Công Danh +--- + alot/commands/envelope.py | 4 ++-- + alot/widgets/ansi.py | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py +index 9c2fbbc5..ba0b4dbc 100644 +--- a/alot/commands/envelope.py ++++ b/alot/commands/envelope.py +@@ -759,13 +759,13 @@ class BodyConvertCommand(Command): + ebuffer = ui.current_buffer + envelope = ebuffer.envelope + +- if self.action is "txt2html": ++ if self.action == "txt2html": + fallbackcmd = settings.get('envelope_txt2html') + cmd = self.cmd or split_commandstring(fallbackcmd) + if cmd: + envelope.body_html = self.convert(cmd, envelope.body_txt) + +- elif self.action is "html2txt": ++ elif self.action == "html2txt": + fallbackcmd = settings.get('envelope_html2txt') + cmd = self.cmd or split_commandstring(fallbackcmd) + if cmd: +diff --git a/alot/widgets/ansi.py b/alot/widgets/ansi.py +index 97a4fb95..4aaf28e7 100644 +--- a/alot/widgets/ansi.py ++++ b/alot/widgets/ansi.py +@@ -81,7 +81,7 @@ def parse_escapes_to_urwid(text, default_attr=None, default_attr_focus=None, + i = 0 + while i < len(esc_code): + code = esc_code[i] +- if code is 0: ++ if code == 0: + attr.update({'bold': default_attr.bold, + 'underline': default_attr.underline, + 'standout': default_attr.standout}) +-- +2.26.2.526.g744177e7f7 + diff --git a/srcpkgs/alot/template b/srcpkgs/alot/template index 60134d6605..f8fed37163 100644 --- a/srcpkgs/alot/template +++ b/srcpkgs/alot/template @@ -4,12 +4,22 @@ version=0.9 revision=1 archs=noarch build_style=python3-module -hostmakedepends="python3-setuptools" +hostmakedepends="python3-setuptools python3-Sphinx" depends="python3-setuptools python3-Twisted notmuch-python3 python3-configobj python3-gpg python3-magic python3-urwidtrees" +checkdepends="$depends" short_desc="Terminal-based mail user agent based on the notmuch mail indexer" maintainer="Felix Van der Jeugt " license="GPL-3.0-or-later" homepage="https://github.com/pazz/alot" distfiles="https://github.com/pazz/${pkgname}/archive/${version}.tar.gz" checksum=64bfa2f550d775940348c93532bf5cbdde57b9fcec4bcf2447a72510d2add6cf +patch_args="-Np1" + +post_build() { + make -C docs man +} + +post_install() { + vman docs/build/man/alot.1 +} ``` The check step is failing, though. Can you check?