python-importlib_metadata: add dependencies, fix tests
This commit is contained in:
parent
34b7fc4c97
commit
fa8b4fd72f
1 changed files with 7 additions and 4 deletions
|
@ -1,14 +1,13 @@
|
|||
# Template file for 'python3-importlib_metadata'
|
||||
pkgname=python3-importlib_metadata
|
||||
version=1.2.0
|
||||
revision=2
|
||||
revision=3
|
||||
archs=noarch
|
||||
wrksrc="importlib_metadata-${version}"
|
||||
build_style=python-module
|
||||
pycompile_module=importlib_metadata
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python3-zipp"
|
||||
checkdepends="${depends}"
|
||||
checkdepends="${depends} python3-packaging"
|
||||
short_desc="Read metadata from Python packages"
|
||||
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
||||
license="Apache-2.0"
|
||||
|
@ -17,8 +16,12 @@ changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(link
|
|||
distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz"
|
||||
checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278
|
||||
|
||||
do_check() {
|
||||
python3 setup.py test
|
||||
}
|
||||
|
||||
python-importlib_metadata_package() {
|
||||
depends=python-zipp
|
||||
depends="python-zipp python-backports.configparser python-contextlib2"
|
||||
short_desc="${short_desc/Python/Python 2/}"
|
||||
pkg_install() {
|
||||
vmove "usr/lib/python2.7"
|
||||
|
|
Loading…
Reference in a new issue