blob: 1068b7106c2acc3ca3e282f5980e4248c8f08253 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=python-grandalf
_pkgname=${pkgname#python-}
pkgver=0.8
pkgrel=3
pkgdesc='graph and drawing algorithms framework'
arch=(any)
url="https://github.com/bdcht/$_pkgname"
license=(MIT)
depends=(python
python-ply)
makedepends=(python-{build,installer,wheel}
python-setuptools)
checkdepends=(python-pytest
python-pytest)
_archive="$_pkgname-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz")
sha256sums=('82d80072e5a1928bc46d94a54d2d92a38f73da0af052efc84ce34b5f4601dfa2')
prepare() {
cd "$_archive"
sed -i -e '/setup_requires/d' setup.py
}
build() {
cd "$_archive"
python -m build -wn
}
check() {
cd "$_archive"
export PYTHONPATH="$PWD/build/lib"
pytest
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|