summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76154a475347baab1ee619cceec83a5d85d2fab7 (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=python-graphsrv
_pkg=graphsrv
pkgver=2.1.0.1
pkgrel=1
pkgdesc='Serve embeddable graphs'
arch=('any')
url="https://github.com/20c/graphsrv"
license=('Apache')
depends=('python-flask' 'python-jinja' 'python-vodka')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('54e14a687950bb9fbffc72e2b068fd6569b4bbacc9e09b48fa6cce1f92d1eb3d')

prepare() {
	sed -i '/packages=/s/()/(exclude=["*tests*"])/' "$_pkg-$pkgver/setup.py"
}

build() {
	cd "$_pkg-$pkgver"
	python -m build --wheel --no-isolation
}

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