blob: ca7e77793721476384b209ec745c5c17132d5ecc (
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
43
44
45
46
47
48
49
50
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
_pyname=glyphsLib
pkgname=python-${_pyname,,}
pkgver=6.0.5
pkgrel=1
pkgdesc='A bridge from Glyphs source files (.glyphs) to UFOs'
arch=(any)
url="https://github.com/googlefonts/$_pyname"
license=(Apache)
_pydeps=(fonttools
fs # for fonttools[ufo]
openstep-plist
ufolib2
unicodedata2) # for fonttools[unicode]
depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(python-defcon
python-setuptools-scm)
_pycheckdeps=(lxml # for fonttools[lxml]
pytest
ufo2ft
ufonormalizer
xmldiff)
checkdepends=("${_pycheckdeps[@]/#/python-}")
optdepends=(python-defcon
python-ufonormalizer)
_archive="$_pyname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
sha256sums=('aacfd2073b177477dc6c5862854a71bee78836f8d2209c615ddfa3f1dcf5523a')
_setup='from setuptools import setup; setup();'
build() {
cd "$_archive"
python -c "$_setup" build
}
check() {
cd "$_archive"
# skipped tests require ufo2ft, a circular dependency which might be on
# older version than expected when this is built against Arch packages
PYTHONPATH=Lib pytest tests \
--deselect tests/builder/builder_test.py
}
package() {
cd "$_archive"
PYTHONPATH=Lib python -c "$_setup" install --root="$pkgdir" --optimize=1 --skip-build
}
|