From d2630dfde8089570d3a6f147a56fbe80cf38303f Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Thu, 11 Nov 2021 22:37:05 +0100 Subject: [PATCH] python3-codespell: update to 2.1.0. --- srcpkgs/python3-codespell/template | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-codespell/template b/srcpkgs/python3-codespell/template index c2f5a9931b7e..9f8d96bdc606 100644 --- a/srcpkgs/python3-codespell/template +++ b/srcpkgs/python3-codespell/template @@ -1,15 +1,21 @@ # Template file for 'python3-codespell' pkgname=python3-codespell -version=1.17.1 -revision=2 +version=2.1.0 +revision=1 wrksrc="codespell-${version}" build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3-setuptools" +depends="python3-chardet" +checkdepends="python3-pytest-cov $depends" short_desc="Checks code for common spelling mistakes (Python3)" maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/codespell-project/codespell" -distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=d9d90fdb223c3462cc3982f44c018bad873092ed7ac5b9efe23e1350fbe2d4c7 +distfiles="https://github.com/codespell-project/codespell/archive/v${version}.tar.gz" +checksum=8d0730b6ff35e56bda8d9600ccffbf27bb83905600775bf869cb8b9936b108c0 conflicts="python-codespell>=0" + +pre_check() { + # Remove test that needs itself + vsed -i '/run_codespell/,/==4/d' codespell_lib/tests/test_basic.py +}