~dricottone/huttese-apk

ref: 407bec0a045e3dd936e0906e51b62f885889c6e2 huttese-apk/sr.ht/py3-pydyf/APKBUILD -rw-r--r-- 981 bytes
407bec0a — Drew DeVault py3-pyphen: drop package 2 years ago
                                                                                
468c6027 Drew DeVault
9cdf2ad0 Drew DeVault
468c6027 Drew DeVault
2abc55b5 Drew DeVault
468c6027 Drew DeVault
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pydyf
_pyname=pydyf
pkgver=0.1.2
pkgrel=0
pkgdesc="A low-level PDF generator"
url="https://pypi.org/project/pydyf/"
arch="noarch"
license="BSD"
depends="python3"
checkdepends="
	py3-pytest py3-pytest-flake8 py3-pytest-isort py3-pytest-cov py3-coverage
	py3-pillow ghostscript
"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

prepare() {
	# If you're going to make your test suite fail on flake8 errors you should
	# at least run it before you ship a release
	sed -i pyproject.toml -e 's/ --flake8//'
}

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="
0054791c92c86c188c6a70cfe83831319cd1a587f48ba4b8bd212af178bae24611815b5436699ea6d17fe1b39115a666b30a7982ac35e54ce1d52f34612c9729  pydyf-0.1.2.tar.gz
"