void-packages/srcpkgs/python-keyring/template
2019-03-24 19:53:51 -03:00

35 lines
1.1 KiB
Bash

# Template file for 'python-keyring'
pkgname=python-keyring
version=18.0.1
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=67d6cc0132bd77922725fae9f18366bb314fd8f95ff4d323a4df41890a96a838
alternatives="keyring:keyring:/usr/bin/keyring2"
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
}
}