aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-inflection/APKBUILD
blob: a8298aa6c1085e631f033786cb566cd13b9db3c0 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-inflection
pkgver=0.5.1
pkgrel=2
pkgdesc="Port of Ruby on Rails' inflector to Python"
url="https://github.com/jpvanhal/inflection"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/i/inflection/inflection-$pkgver.tar.gz"
builddir="$srcdir/inflection-$pkgver"

replaces="py-inflection" # Backkwards compatibility
provides="py-inflection=$pkgver-r$pkgrel" # Backkwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest
}

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

sha512sums="82f70e2b81fb166260191a464383f6674e3b21504a35ee605ac6ce4bb163c8f3bbe6d06379575178d7196701459506dd541f32e48f24b32f42d5cfb717158d50  inflection-0.5.1.tar.gz"