void-packages/srcpkgs/python-stevedore/template
2017-06-06 14:10:28 +02:00

38 lines
1.1 KiB
Bash

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