summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce7190af4ad94189a486f278b4ff88706aae5c5a (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: Rafael Dominiquini <rafaeldominiquini at gmail dot com>

pkgname=python-micropie
pkgver=0.28
pkgrel=1
pkgdesc='An ultra micro ASGI web framework'
url="https://patx.github.io/micropie/"
arch=('any')
license=('BSD-3-Clause')
depends=(
  'python'
  'python-jinja'
  'python-orjson'
  'python-python-multipart'
)
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
# checkdepends=(
#   'python-pytest'
# )
source=("git+https://github.com/patx/micropie.git#tag=v$pkgver")
sha256sums=('9206e936dc8cca9bbf11301285548d602ef22a39e95618f537b3b9d1ea923beb')

build() {
    cd "micropie"

    python -m build --wheel --no-isolation
}

# check() {
#     cd "micropie"
#
#     pytest pytest --dist no -n 0 -s -v ./tests.py
# }

package() {
    cd "micropie"

    python -m installer --destdir="${pkgdir}" dist/*.whl

    install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"

    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}