void-packages/srcpkgs/python-keyring/template
2016-05-01 02:11:14 +02:00

37 lines
1 KiB
Bash

# Template file for 'python-keyring'
pkgname=python-keyring
version=9.0
revision=2
noarch=yes
wrksrc="keyring-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools"
pycompile_module="keyring"
short_desc="Python2 interface to the system keyring service"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="MIT"
homepage="https://github.com/jaraco/keyring"
distfiles="${PYPI_SITE}/k/keyring/keyring-${version}.tar.gz"
checksum=1c1222298da2100128f821c57096c69cb6cec0d22ba3b66c2859ae95ae473799
alternatives="keyring:keyring:/usr/bin/keyring2.7"
pre_build() {
sed -e '/setuptools_scm/d' \
-e "s/use_scm_version=True,/version=\"${version}\",/" \
-i setup.py
}
python3.4-keyring_package() {
noarch=yes
pycompile_version="3.4"
pycompile_module="keyring"
depends="python3.4-setuptools"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="keyring:keyring:/usr/bin/keyring3.4"
pkg_install() {
vmove usr/bin/keyring3.4
vmove usr/lib/python3.4
}
}