aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-srsly/APKBUILD
blob: bd335535d17530a1ca56f3f53a3a2fc5543b7c45 (plain) (blame)
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: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-srsly
pkgver=2.0.1
pkgrel=0
pkgdesc="Modern high-performance serialization utilities for Python"
url="https://github.com/explosion/srsly"
arch="all !mips !mips64" # blocked by py3-numpy
license="MIT"
depends="python3 py3-numpy py3-tz"
makedepends="python3-dev py3-setuptools cython"
checkdepends="py3-pytest py3-pytest-timeout py3-mock"
subpackages="$pkgname-doc"
source="srsly-$pkgver.tar.gz::https://github.com/explosion/srsly/archive/v$pkgver.tar.gz"
builddir="$srcdir/srsly-$pkgver"

build() {
	python3 setup.py build_ext --inplace
}

check() {
	PYTHONPATH="$(echo $PWD/build/lib.*)" pytest-3
}

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

	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

sha512sums="25557e5bd2869b4fcd3a801af6e19461eaf5fab920a252ce24229b637fcdec96ce706eb6b92158e9537c9cf9890b2ac5635c5a4f08641d30f8801fb18cff5128  srsly-2.0.1.tar.gz"