24 lines
951 B
Bash
24 lines
951 B
Bash
# Template file for 'python3-codespell'
|
|
pkgname=python3-codespell
|
|
version=2.3.0
|
|
revision=1
|
|
build_style=python3-pep517
|
|
make_check_args="--deselect codespell_lib/tests/test_basic.py::test_command
|
|
--deselect codespell_lib/tests/test_basic.py::test_permission_error"
|
|
hostmakedepends="python3-setuptools_scm python3-wheel"
|
|
depends="python3-chardet"
|
|
checkdepends="${depends} python3-pytest"
|
|
short_desc="Checks code for common spelling mistakes (Python3)"
|
|
maintainer="icp <pangolin@vivaldi.net>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/codespell-project/codespell"
|
|
distfiles="${PYPI_SITE}/c/codespell/codespell-${version}.tar.gz"
|
|
checksum=360c7d10f75e65f67bad720af7007e1060a5d395670ec11a7ed1fed9dd17471f
|
|
conflicts="python-codespell>=0"
|
|
|
|
pre_check() {
|
|
vsed -e '/addopts/d' -i pyproject.toml
|
|
# Remove marker because of missing pytest plugin `pytest-dependency`
|
|
vsed -e '/@pytest\.mark\.dependency/d' -i codespell_lib/tests/test_dictionary.py
|
|
}
|