void-packages/srcpkgs/python3-mypy/template

30 lines
983 B
Bash

# Template file for 'python3-mypy'
pkgname=python3-mypy
version=1.5.1
revision=2
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="Michal Vasilek <michal@vasilek.cz>"
license="MIT"
homepage="https://www.mypy-lang.org"
changelog="https://mypy-lang.blogspot.com"
distfiles="${PYPI_SITE}/m/mypy/mypy-${version}.tar.gz"
checksum=b031b9601f1060bf1281feab89697324726ba0c0bae9d7cd7ab4b690940f0b92
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
}