blob: a1f50bbbe6a17544671cfab502d93584c54d4c23 (
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
|
# Maintainer: Marc Rechté <marc4@rechte.fr>
_name=fastapi-cli
pkgname=python-$_name
pkgver=0.0.4
pkgrel=1
pkgdesc='Run and manage FastAPI apps from the command line with FastAPI CLI'
arch=(any)
url="https://github.com/tiangolo/fastapi-cli"
license=(MIT)
depends=(
python
python-typer
)
makedepends=(
python-build
python-installer
python-pdm-backend
)
optdepends=(
'fastapi: FastAPI framework, high performance, easy to learn, fast to code, ready for production'
'uvicorn: Uvicorn as ASGI server'
)
source=($_name-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha256sums=('094c11ac845917033e6eb84b1005b34592f80a2dcd21f3dc3e0091ff6e31fe61')
build() {
cd $_name-$pkgver
python -m build --wheel --skip-dependency-check
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|