blob: 8a4d6b923a9798e999a23d981e3618c2ed141bf9 (
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
35
36
37
38
39
40
|
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Felix Buehler <account@buehler.de>
_name=pykwalify
pkgname=python-pykwalify
pkgver=1.8.0
pkgrel=4
pkgdesc='Python lib/cli for JSON/YAML schema validation'
arch=('any')
url=https://github.com/Grokzen/pykwalify
license=('MIT')
depends=('python-dateutil' 'python-docopt' 'python-ruamel-yaml')
makedepends=('python-setuptools')
checkdepends=('python-pytest' 'python-testfixtures')
provides=('pykwalify')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('796b2ad3ed4cb99b88308b533fb2f559c30fa6efb4fa9fda11347f483d245884')
b2sums=('1593f5e3e15188929574ece60bf6818438258bf024d105ae26323a97a202ac69001a15ca6daaa430970af3659c49da745bcf1f77c23ac72bed2ddca14440d943')
prepare() {
patch -d $srcdir -p1 -i $startdir/fix-ruamel-yaml-tests.diff
}
build() {
cd $_name-$pkgver
python setup.py build
}
check() {
cd $_name-$pkgver
pytest
}
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}
# vim:set ts=2 sw=2 et:
|