summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b257ab08125a396be92962d5e356ccfd6d0ef8bd (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
# Maintainer: Alirn <PantherFramework@gmail.com>
# Contributor: Mahan Bakhshi <mahanbakhshi03@gmail.com>
pkgname=python-panther
_name=panther
pkgver=2.4.1
pkgrel=1
pkgdesc="Fast & Friendly Python Web Framework"
arch=('any')
url='https://pantherpy.github.io/'
license=('BSD 3 Clause')
depends=( 'bpython' 'python-bson' 'python-pantherdb' 'python-pydantic' 'python-httptools' 'uvicorn' 'python-rich' 'python-watchfiles' 'python-jose' 'python-greenlet' )
makedepends=( 'git' 'python-setuptools' 'python-installer' 'python-wheel' )
optdepends=('python-pymongo: mongodb support')
source=('git+https://github.com/AliRn76/panther.git')
md5sums=('SKIP')

build() {
	cd "{$_name}"
	python setup.py build
}

check() {
  cd "{$_name}"
  python setup.py test
}

package() {
	cd "{$_name}"
	python setup.py install --skip-build --root="${pkgdir}" --optimize=1
	install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${_name}/license"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${_name}/README.md"
}