diff --git a/srcpkgs/python3-cheetah3/patches/tox-py39.patch b/srcpkgs/python3-cheetah3/patches/tox-py39.patch new file mode 100644 index 0000000000..33380547f6 --- /dev/null +++ b/srcpkgs/python3-cheetah3/patches/tox-py39.patch @@ -0,0 +1,55 @@ +From 1f0faa7f7dc6d13b49ed9b91110b98e1a55a9ba3 Mon Sep 17 00:00:00 2001 +From: "Andrew J. Hesford" +Date: Fri, 16 Oct 2020 12:27:06 -0400 +Subject: [PATCH] tox.ini: support Python 3.9 + +--- + tox.ini | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) + +diff --git a/tox.ini b/tox.ini +index 45893c0..5df9174 100644 +--- tox.ini ++++ tox.ini +@@ -5,7 +5,7 @@ + + [tox] + minversion = 2.0 +-envlist = py27,py3{4,5,6,7,8},py{27,38}-flake8,pypy ++envlist = py27,py3{4,5,6,7,8,9},py{27,38,39}-flake8,pypy + + [testenv] + basepython = +@@ -15,6 +15,7 @@ basepython = + py36: {env:TOXPYTHON:python3.6} + py37: {env:TOXPYTHON:python3.7} + py38: {env:TOXPYTHON:python3.8} ++ py39: {env:TOXPYTHON:python3.9} + pypy: {env:TOXPYTHON:pypy} + commands = + {envpython} --version +@@ -63,6 +64,10 @@ commands = + commands = + {[tests]commands} + ++[testenv:py39] ++commands = ++ {[tests]commands} ++ + [testenv:py27-flake8] + deps = + flake8 +@@ -77,6 +82,13 @@ commands = + {[testenv]commands} + flake8 . + ++[testenv:py39-flake8] ++deps = ++ flake8 ++commands = ++ {[testenv]commands} ++ flake8 . ++ + [testenv:pypy] + commands = + {[tests]commands} diff --git a/srcpkgs/python3-cheetah3/template b/srcpkgs/python3-cheetah3/template index 2dd6d8c8cc..b7494ec418 100644 --- a/srcpkgs/python3-cheetah3/template +++ b/srcpkgs/python3-cheetah3/template @@ -1,30 +1,25 @@ # Template file for 'python3-cheetah3' pkgname=python3-cheetah3 -version=3.2.5 -revision=2 +version=3.2.6 +revision=1 wrksrc="Cheetah3-${version}" build_style=python3-module hostmakedepends="python3-setuptools" makedepends="python3-devel" depends="python3" -checkdepends="tox" +checkdepends="tox python3-setuptools python3-Markdown python3-Pygments" short_desc="Python-powered template engine and code generator" maintainer="Piotr Wójcik " license="MIT" homepage="http://www.cheetahtemplate.org/" distfiles="${PYPI_SITE}/C/Cheetah3/Cheetah3-${version}.tar.gz" -checksum=ececc9ca7c58b9a86ce71eb95594c4619949e2a058d2a1af74c7ae8222515eb1 -alternatives="python-cheetah:cheetah:/usr/bin/cheetah3 - python-cheetah:cheetah-analyze:/usr/bin/cheetah-analyze3 - python-cheetah:cheetah-compile:/usr/bin/cheetah-compile3" +checksum=f1c2b693cdcac2ded2823d363f8459ae785261e61c128d68464c8781dba0466b +conflicts="python-cheetah>=0" do_check() { tox -e py${py3_ver/./} } post_install() { - mv ${DESTDIR}/usr/bin/cheetah{,3} - mv ${DESTDIR}/usr/bin/cheetah-analyze{,3} - mv ${DESTDIR}/usr/bin/cheetah-compile{,3} vlicense LICENSE }