blob: 9649981c112cd42bc6977c37592da3ee470a2d6d (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_pyname=axisregistry
pkgname=python-$_pyname
pkgver=0.4.11
pkgrel=2
pkgdesc='easy access to the GF Axis Registry'
arch=(any)
url="https://github.com/googlefonts/$_pyname"
license=(Apache-2.0)
depends=(python
python-protobuf)
makedepends=(python-{build,installer,wheel}
python-setuptools-scm)
checkdepends=(python-fonttools
python-pytest)
_archive="$_pyname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
sha256sums=('a75fe87265aaac22780b295181e9ff0d1d0b7aa7302310758c06ae25bc3cca06')
build() {
cd "$_archive"
python -m build -wn
}
check() {
cd "$_archive"
export PYTHONPATH=Lib
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
pytest
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
}
|