void-packages/srcpkgs/python-stevedore/template

32 lines
915 B
Bash

# Template file for 'python-stevedore'
pkgname=python-stevedore
version=1.30.1
revision=1
archs=noarch
wrksrc="stevedore-${version}"
build_style=python-module
pycompile_module="stevedore"
hostmakedepends="python-setuptools python3-setuptools python-pbr python3-pbr"
depends="python-six"
short_desc="Manage dynamic plugins for Python2 applications"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0"
homepage="https://git.openstack.org/cgit/openstack/stevedore"
distfiles="${PYPI_SITE}/s/stevedore/stevedore-${version}.tar.gz"
checksum=7be098ff53d87f23d798a7ce7ae5c31f094f3deb92ba18059b1aeb1ca9fec0a0
pre_build() {
# remove dependency on pbr; it's not a runtime dependency
sed -i '/pbr/d' requirements.txt
}
python3-stevedore_package() {
archs=noarch
depends="python3-six"
pycompile_module="stevedore"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}