# Template file for 'python-keyring' pkgname=python-keyring version=10.6.0 revision=1 noarch=yes wrksrc="keyring-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="python-setuptools python-SecretStorage" 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=69c2b69d66a0db1165c6875c1833c52f4dc62179959692b30c8c4a4b8390d895 alternatives="keyring:keyring:/usr/bin/keyring2" pre_build() { sed -e '/setuptools_scm/d' \ -e "s/use_scm_version=True,/version=\"${version}\",/" \ -i setup.py } post_install() { vlicense LICENSE } python3-keyring_package() { noarch=yes pycompile_module="keyring" depends="python3-setuptools python3-SecretStorage" short_desc="${short_desc/Python2/Python3}" alternatives="keyring:keyring:/usr/bin/keyring3" pkg_install() { vmove usr/bin/keyring3 vmove usr/lib/python3* vlicense LICENSE } }