43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'python-keyring'
|
|
pkgname=python-keyring
|
|
version=10.0.2
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="keyring-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-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=91c31fd805b3ce6343406c7c51437f7505f3e9abb6e14ccac8242ea1fc912d77
|
|
alternatives="keyring:keyring:/usr/bin/keyring2"
|
|
|
|
pre_build() {
|
|
sed -e '/setuptools_scm/d' \
|
|
-e "s/use_scm_version=True,/version=\"${version}\",/" \
|
|
-i setup.py
|
|
}
|
|
|
|
python3-keyring_package() {
|
|
noarch=yes
|
|
pycompile_module="keyring"
|
|
depends="python3-setuptools"
|
|
replaces="python3.4-keyring>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="keyring:keyring:/usr/bin/keyring3"
|
|
pkg_install() {
|
|
vmove usr/bin/keyring3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-keyring_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-keyring>=${version}_${revision}"
|
|
}
|