42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'python-keyring'
|
|
pkgname=python-keyring
|
|
version=18.0.0
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="keyring-${version}"
|
|
build_style=python-module
|
|
pycompile_module="keyring"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-SecretStorage python-entrypoints"
|
|
short_desc="Python2 interface to the system keyring service"
|
|
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
|
|
license="MIT"
|
|
homepage="https://github.com/jaraco/keyring"
|
|
changelog="https://raw.githubusercontent.com/jaraco/keyring/master/CHANGES.rst"
|
|
distfiles="${PYPI_SITE}/k/keyring/keyring-${version}.tar.gz"
|
|
checksum=12833d2b05d2055e0e25931184af9cd6a738f320a2264853cabbd8a3a0f0b65d
|
|
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() {
|
|
archs=noarch
|
|
pycompile_module="keyring"
|
|
depends="python3-setuptools python3-SecretStorage python3-entrypoints"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="keyring:keyring:/usr/bin/keyring3"
|
|
pkg_install() {
|
|
vmove usr/bin/keyring3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|