forked from void-linux/void-packages
/
template
31 lines (28 loc) · 902 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Template file for 'python3-pep517'
pkgname=python3-pep517
_pkg=${pkgname#*-}
version=0.12.0
revision=1
wrksrc="${_pkg}-${version}"
build_style=python3-pep517
hostmakedepends="python3-flit_core"
# TODO: remove python3-tomli in python3>=3.11.0
depends="python3-tomli"
checkdepends="${depends} python3-pytest python3-testpath python3-setuptools"
short_desc="API to call PEP 517 hooks for building Python packages"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://github.com/pypa/pep517"
changelog="https://github.com/pypa/pep517/blob/main/doc/changelog.rst"
distfiles="https://github.com/pypa/pep517/archive/refs/tags/v${version}.tar.gz"
checksum=03df9b55d8bee614896c3196b6ab7632829364fe166ad16b9ef5abade3f83612
do_patch() {
# Disable flake8 tests
vsed -e '/--flake8/d' -i pytest.ini
}
do_check() {
PYTHONPATH=pep517 python3 -m pytest
}
post_install() {
vlicense LICENSE
}