summaryrefslogtreecommitdiff
path: root/testing/py3-fastdiff/APKBUILD
blob: 1965809bea1f8ce21c5feca8c38192faa1ffd601 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-fastdiff
pkgver=0.3.0
pkgrel=2
pkgdesc="A fast native implementation of diff algorithm with a pure Python fallback"
url="https://github.com/syrusakbary/fastdiff"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
	py3-pytest-runner
	py3-setuptools
	"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/f/fastdiff/fastdiff-$pkgver.tar.gz"
options="!check" # Requires unpackaged native modules
builddir="$srcdir/fastdiff-$pkgver"

build() {
	python3 setup.py build
}

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

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

sha512sums="
dae82cb779dd869cef4e4e258e69f1d0cc2e4b177514fb4136f42f78273f20be45e71fad987c5b5632e95fa3a3bf61f5983f53c17d00b67cb079b403327e63ce  fastdiff-0.3.0.tar.gz
"