blob: 9edd8619a867a03504ab52301601d522bfe62f36 (
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
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-json-config
pkgver=2.0.1
pkgrel=8
pkgdesc="A convenience utility for working with JSON config files with file syncing"
url="https://github.com/bionikspoon/json_config"
license=('MIT')
arch=('any')
depends=('python-future')
makedepends=('python-setuptools')
checkdepends=('python-pytest-mock')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bionikspoon/json_config/archive/$pkgver.tar.gz")
sha512sums=('54ad91e3ad8ba73dfb9e5180f7211646d4d24029688874d6db0de5a583515fa6a09b06156d2e4375159327bafaee622e68686a245af25dbebff5348e76a5562b')
build() {
cd json_config-$pkgver
python setup.py build
}
check() {
cd json_config-$pkgver
pytest
}
package() {
cd json_config-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|