void-packages/srcpkgs/python3-codespell/template
2025-02-15 00:32:11 +00:00

23 lines
951 B
Bash

# Template file for 'python3-codespell'
pkgname=python3-codespell
version=2.4.1
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=299fcdcb09d23e81e35a671bbe746d5ad7e8385972e65dbb833a2eaac33c01e5
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
}