aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-schema/APKBUILD
blob: 6553cfcc1c214ca66a39f2cbdefb92abcd697872 (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
# Contributor: Sasha Gerrand <alpine-pkgs@sgerrand.com>
# Maintainer: Sasha Gerrand <alpine-pkgs@sgerrand.com>
pkgname=py3-schema
_pkgname=schema
pkgver=0.7.1
pkgrel=1
pkgdesc="Schema is a library for validating Python data structures"
url="https://github.com/keleshev/$_pkgname"
arch="noarch"
license="MIT"
depends="python3"
checkdepends="py3-pytest py3-mock"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/keleshev/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

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

sha512sums="c7b214bdc5fd1c9b9533c31d25521232bf5fb066572299a0aa533f7e46365de417b7cfbaa7f141977452f52538d23cfd72799d28a0160c135e0547d115717d34  py3-schema-0.7.1.tar.gz"