void-packages/srcpkgs/python3-mypy/template

30 lines
980 B
Bash

# Template file for 'python3-mypy'
pkgname=python3-mypy
version=1.8.0
revision=1
build_style=python3-module
# fails in ci
make_check_args="-k not(testDaemonStatusKillRestartRecheck)"
make_check_target="mypy/test"
hostmakedepends="python3-setuptools python3-Sphinx"
depends="python3-mypy_extensions python3-typing_extensions"
checkdepends="${depends} python3-attrs python3-filelock
python3-lxml python3-psutil python3-py python3-pytest-xdist"
short_desc="Optional static typing for Python3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.mypy-lang.org"
changelog="https://mypy-lang.blogspot.com"
distfiles="${PYPI_SITE}/m/mypy/mypy-${version}.tar.gz"
checksum=6ff8b244d7085a0b425b56d327b480c3b29cafbd2eff27316a004f9a7391ae07
post_install() {
make -C docs man
vman docs/build/man/mypy.1
vlicense LICENSE
rm -r ${DESTDIR}/${py3_sitelib}/mypy/test
rm -r ${DESTDIR}/${py3_sitelib}/mypyc/test
rm -r ${DESTDIR}/${py3_sitelib}/mypyc/test-data
}