vp-build/srcpkgs/python3-codespell/template

21 lines
728 B
Bash

# Template file for 'python3-codespell'
pkgname=python3-codespell
version=2.1.0
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-chardet"
checkdepends="python3-pytest-cov $depends"
short_desc="Checks code for common spelling mistakes (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/codespell-project/codespell"
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
}