blob: 758d0a462b2bc013e134428e3a5cc815de52e53d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=python-oauth2
pkgver=1.1.1
pkgrel=64
pkgdesc='framework that aims at making it easy to provide authentication via OAuth 2.0 within an application stack/'
url='https://github.com/wndhydrnt/python-oauth2/'
arch=('any')
license=('MIT')
depends=(
'python>=3.11'
'python<3.12'
'python-mock'
'python-mysql-connector'
'python-nose'
'python-pymongo'
'python-memcached'
'python-redis'
'python-tornado')
makedepends=(
'python-setuptools')
optdepends=(
'python-memcached'
'python-pymongo'
'python-redis'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/wndhydrnt/python-oauth2/archive/v${pkgver}.tar.gz")
sha512sums=('1d4d41a26ca448528b8869fef6cdf217900da388f64f4ea34f466544fde071896210ee4439e20124081209902b93356230e4828ec127f48216d149aa47fd4e62')
build() {
cd "${pkgname}-${pkgver}"
python setup.py build
}
check() {
cd "${pkgname}-${pkgver}"
python setup.py test
}
package() {
cd "${pkgname}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
}
|