blob: 0e10b389eb82f55f84581850fdfb72f842b67250 (
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: Caleb Maclennan <caleb@alerque.com>
# Contributor: Boyan Ding <boyan.j.ding@gmail.com>
_pyname=pygtrie
pkgname=python-$_pyname
pkgver=2.5.0
pkgrel=4
pkgdesc='Python library implementing a trie data structure'
arch=(any)
url="https://github.com/google/$_pyname"
license=(Apache-2.0)
depends=(python)
makedepends=(python-{build,installer,wheel}
python-setuptools)
_archive="$_pyname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
sha256sums=('203514ad826eb403dab1d2e2ddd034e0d1534bbe4dbe0213bb0593f66beba4e2')
build() {
cd "$_archive"
python -m build -wn
}
check() {
cd "$_archive"
python -m unittest discover
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
}
|