blob: 29a982856b014219711920435be8eed3195f3306 (
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
44
45
46
47
48
49
|
# Maintainer: taotieren <admin@taotieren.com>
_pkgauthor=tomasvotava
pkgname=python-fastapi-sso
_pkgname=${pkgname#python-}
pkgver=0.21.0
pkgrel=2
pkgdesc="FastAPI plugin to enable SSO to most common providers"
arch=('any')
url="https://github.com/${_pkgauthor}/${_pkgname}"
license=('MIT')
depends=(
'python'
'python-httpx'
'python-oauthlib'
'python-pydantic'
'python-pyjwt'
'python-starlette'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-poetry-core'
)
conflicts=("${pkgname}")
provides=("${pkgname}")
source=("${pkgname}::git+${url}.git#tag=${pkgver}")
sha256sums=('6849853b5626a08b388c76adb04bcf231f02de11a612a1a13a3466cc6248d97a')
prepare() {
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "${srcdir}/${pkgname}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
# Install license if available
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
|