mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
28 lines
825 B
Text
28 lines
825 B
Text
# Contributor: Sasha Gerrand <alpine-pkgs@sgerrand.com>
|
|
# Maintainer: Sasha Gerrand <alpine-pkgs@sgerrand.com>
|
|
pkgname=py3-schema
|
|
pkgver=0.7.3
|
|
pkgrel=1
|
|
pkgdesc="Schema is a library for validating Python data structures"
|
|
url="https://github.com/keleshev/schema"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
checkdepends="py3-pytest py3-mock"
|
|
makedepends="py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/keleshev/schema/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/schema-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
PYTHONPATH="$PWD" python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="a64e88a21eb4a5978db5d582ed8494844e563cfc22ae012b8533f2eab57323e0d08eb1b4ce078478a53ad20cc9cc682ce29787258460123fa9a58d119bb07102 py3-schema-0.7.3.tar.gz"
|