void-packages/srcpkgs/python-entrypoints/template

38 lines
1.0 KiB
Bash

# Template file for 'python-entrypoints'
pkgname=python-entrypoints
version=0.3
revision=2
archs=noarch
wrksrc="entrypoints-${version}"
build_style=python-module
pycompile_module="entrypoints.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-backports.configparser"
short_desc="Discover and load entry points from installed packages (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/takluyver/entrypoints"
distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
checksum=f26eddc371e37d8e9f6663b77524d6731567f005bd1e4ac950c0e33c48fbc065
pre_build() {
sed -i "s|@VERSION@|${version}|" setup.py
}
post_install() {
for pyver in $python_versions; do
vinstall entrypoints.py 644 usr/lib/python${pyver}/site-packages
done
vlicense LICENSE
}
python3-entrypoints_package() {
archs=noarch
pycompile_module="entrypoints.py"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}