blob: b64347d0efd46a05be579c5db1ff720d7df71651 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_pyname=gflanguages
pkgname=python-$_pyname
epoch=1
pkgver=0.7.3
pkgrel=1
pkgdesc='API for evaluating language support in the Google Fonts collection'
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-pytest
python-filelock
python-uharfbuzz
python-youseedee)
_archive="$_pyname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
sha256sums=('0516cf0fad6a6f5fc204f86ffe31a688b0dd77698716a0ae821603b9a781a39e')
build() {
cd "$_archive"
python -m build -wn
}
check() {
cd "$_archive"
PYTHONPATH=Lib pytest
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
}
|