aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-inflect/APKBUILD
blob: 42a1b823bb427e894fc9b5ab51a607d1038747e0 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-inflect
pkgver=5.3.0
pkgrel=2
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-black
	py3-pytest-cov
	py3-pytest-flake8
	"
source="https://pypi.python.org/packages/source/i/inflect/inflect-$pkgver.tar.gz"
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="f5baf65fb7a6ba59c91a36a17acb0abda3efc74fef56b3a3d99c100b2c6e94c5aafb08ab37310ce410631ac928e9c24a4a4c5e6b5c7d8f907c3d999f4a70cce4  inflect-5.3.0.tar.gz"