void-packages/srcpkgs/python3-mypy/template

30 lines
983 B
Bash

# Template file for 'python3-mypy'
pkgname=python3-mypy
version=1.2.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="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=f70a40410d774ae23fcb4afbbeca652905a04de7948eaf0b1789c8d1426b72d1
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
}