summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87c75564f11325d1a2af592ab9d27dc4255017a5 (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
# Maintainer: Lorenzo Gaifas <brisvag@gmail.com>

_name='justpy'
_author='elimintz'
_framework='python'
pkgname="${_framework}-${_name}"
pkgver=0.2.3
pkgrel=1
pkgdesc="An object oriented high-level Python Web Framework that requires no front-end programming"
arch=('any')
license=('Apache')
url="https://justpy.io/"
makedepends=(
  'python-build'
  'python-installer'
  'python-wheel'
  'python-flit-core'
)
depends=(
  'python'
  'python-addict'
  'python-aiofiles'
  'python-demjson3'
  'python-httpx'
  'python-itsdangerous'
  'python-jinja'
  'python-starlette'
  'python-websockets'
  'uvicorn'
)
source=("https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('8db66276af9c2e5c52a496b3ac111f77e5c4e0b259e71582e290bb2782a8c1ab')
provides=("${_framework}-${_name}")

build() {
  cd "${srcdir}/${_name}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${srcdir}/${_name}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl

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

# vim:set ts=2 sw=2 et:<Paste>