aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-text-unidecode/APKBUILD
blob: 774ae1dc816b8c3882874591619cb48e27a61191 (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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-text-unidecode
_pkgname=text-unidecode
pkgver=1.3
pkgrel=1
pkgdesc="The most basic Text::Unidecode port"
url=https://github.com/kmike/text-unidecode/
arch=noarch
license="Artistic-1.0-cl8"
depends="python3"
makedepends="py3-setuptools"
checkdepends="pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/kmike/$_pkgname/archive/$pkgver.tar.gz"
builddir=$srcdir/$_pkgname-$pkgver

replaces=py-text-unidecode # Backwards compatibility
provides=py-text-unidecode=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=src pytest-3
}

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

sha512sums="8f782a1f0289721bf72d4f32c351628c537a118ea995ea63636abd0f87124909cf52b2f4d8a9b02ab9403fd41f2d1725eb0d7ffeb4f6e80cbd1791edfcd4faec  py3-text-unidecode-1.3.tar.gz"