summaryrefslogtreecommitdiff
path: root/community/py3-cmudict/APKBUILD
blob: b43bfc9c0036d09400d3188d94f606530f0093a4 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-cmudict
pkgver=1.0.2
pkgrel=2
pkgdesc="A versioned Python wrapper package for The CMU Pronouncing Dictionary data files"
url="https://github.com/prosegrinder/python-cmudict"
arch="noarch"
license="GPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/c/cmudict/cmudict-$pkgver.tar.gz"
builddir="$srcdir/cmudict-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
e6ff259e130bf95d36b1c7e116ec6ef28699629ac29dfb3ed3d66f17cecda643abfa864b703d45af3f92dc0c5be1e45329b28d61586a42b1899dae5359ee1e9b  cmudict-1.0.2.tar.gz
"