mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 07:47:22 +08:00
python-keyring: add python3 support, update to 5.3
This commit is contained in:
parent
67000dfc4a
commit
923f0d2d90
62
python-keyring/PKGBUILD
Normal file
62
python-keyring/PKGBUILD
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
||||||
|
|
||||||
|
pkgbase=python-keyring
|
||||||
|
pkgname=('python3-keyring' 'python2-keyring')
|
||||||
|
pkgver=5.3
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Store and access your passwords safely."
|
||||||
|
arch=('any')
|
||||||
|
url="http://pypi.python.org/pypi/keyring"
|
||||||
|
license=('PSF' 'MIT')
|
||||||
|
makedepends=('python3-setuptools' 'python2-setuptools')
|
||||||
|
checkdepends=('python3-pytest' 'python2-pytest' 'python3-mock' 'python2-mock' 'python3-crypto' 'python2-crypto'
|
||||||
|
'python3-gobject' 'python2-gobject' 'libgnome-keyring'
|
||||||
|
'kdebindings-python3' 'kdebindings-python2')
|
||||||
|
optdepends=('kdeutils-kwallet: supports the KDE Kwallet service.')
|
||||||
|
source=("http://pypi.python.org/packages/source/k/keyring/keyring-$pkgver.zip")
|
||||||
|
md5sums=('fd50a2be4a44a78efb09a7c046b6410d')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cp -a keyring-$pkgver{,-py2}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/keyring-$pkgver"
|
||||||
|
python3 setup.py build
|
||||||
|
|
||||||
|
cd "$srcdir/keyring-$pkgver-py2"
|
||||||
|
python2 setup.py build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$srcdir/keyring-$pkgver"
|
||||||
|
py.test-3.4
|
||||||
|
|
||||||
|
cd "$srcdir/keyring-$pkgver-py2"
|
||||||
|
py.test2
|
||||||
|
}
|
||||||
|
|
||||||
|
package_python3-keyring() {
|
||||||
|
depends=('python3')
|
||||||
|
optdepends=('libgnome-keyring: Gnome integration'
|
||||||
|
'python3-gobject: Gnome integration'
|
||||||
|
'kdebindings-python3: Kde integration'
|
||||||
|
'python3-crypto: CLI keyring')
|
||||||
|
|
||||||
|
cd "$srcdir/keyring-$pkgver"
|
||||||
|
python3 setup.py install --root=$pkgdir --optimize=1
|
||||||
|
}
|
||||||
|
|
||||||
|
package_python2-keyring() {
|
||||||
|
depends=('python2')
|
||||||
|
optdepends=('libgnome-keyring: Gnome integration'
|
||||||
|
'python2-gobject: Gnome integration'
|
||||||
|
'kdebindings-python2: Kde integration'
|
||||||
|
'python2-crypto: CLI keyring')
|
||||||
|
|
||||||
|
cd "$srcdir/keyring-$pkgver-py2"
|
||||||
|
python2 setup.py install --root=$pkgdir --optimize=1
|
||||||
|
|
||||||
|
mv "$pkgdir"/usr/bin/keyring{,2}
|
||||||
|
}
|
@ -1,23 +0,0 @@
|
|||||||
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
||||||
|
|
||||||
pkgname=python2-keyring
|
|
||||||
pkgver=3.7
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="Store and access your passwords safely."
|
|
||||||
arch=('any')
|
|
||||||
url="http://pypi.python.org/pypi/keyring"
|
|
||||||
license=('LGPL2')
|
|
||||||
depends=('python')
|
|
||||||
optdepends=('kdeutils-kwallet: supports the KDE Kwallet service.')
|
|
||||||
source=(http://pypi.python.org/packages/source/k/keyring/keyring-$pkgver.zip)
|
|
||||||
md5sums=('7746c545debacf983ec1c01966cacec3')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "$srcdir/keyring-$pkgver"
|
|
||||||
python setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "$srcdir/keyring-$pkgver"
|
|
||||||
python setup.py install --root=$pkgdir --optimize=1
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user