APKBUILD 945 Bytes
Newer Older
1
2
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
Bart Ribbers's avatar
Bart Ribbers committed
3
pkgname=py3-inflect
4
pkgver=5.3.0
5
pkgrel=2
Bart Ribbers's avatar
Bart Ribbers committed
6
7
pkgdesc="Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words"
url="https://github.com/jazzband/inflect"
8
arch="noarch"
Bart Ribbers's avatar
Bart Ribbers committed
9
10
license="MIT"
depends="python3"
11
12
13
14
15
16
17
18
19
20
21
makedepends="
	py3-setuptools
	py3-setuptools_scm
	py3-toml
	"
checkdepends="
	py3-pytest
	py3-pytest-black
	py3-pytest-cov
	py3-pytest-flake8
	"
Bart Ribbers's avatar
Bart Ribbers committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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"
}

37
sha512sums="f5baf65fb7a6ba59c91a36a17acb0abda3efc74fef56b3a3d99c100b2c6e94c5aafb08ab37310ce410631ac928e9c24a4a4c5e6b5c7d8f907c3d999f4a70cce4  inflect-5.3.0.tar.gz"