aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-inflect/APKBUILD
blob: 229da044a47a6776f5fbf176f6c396670504e450 (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
# Contributor: Bart Ribberse <bribbers@disroot.org>
# Maintainer: Bart Ribberse <bribbers@disroot.org>
pkgname=py3-inflect
pkgver=4.1.0
pkgrel=0
pkgdesc="Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words"
url="https://github.com/jazzband/inflect"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-setuptools_scm py3-toml"
checkdepends="py3-pytest py3-pytest-flake8 py3-pytest-cov py3-pytest-black"
source="https://pypi.python.org/packages/source/i/inflect/inflect-$pkgver.tar.gz"
options="!check" # Flake8 fails https://github.com/jazzband/inflect/issues/109
builddir="$srcdir/inflect-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest --ignore setup.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="9a2ba4777f01475390976f3ac28f046d39d1f86cfdafd161cc7c8d33526aca35d44e6598ccf2a0b68d3511a64b67ed0991b51c78bda8f279cd706fd29a3fa514  inflect-4.1.0.tar.gz"