upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-jsondiff / trunk / PKGBUILD
blob909004bb3563ec3753be61f1b0d60dc74558d7df
1 # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
2 # Contributor: Guillaume Horel <guillaume.horel@gmail.com>
4 pkgname=python-jsondiff
5 _pkgname=jsondiff
6 pkgver=2.0.0
7 pkgrel=3
8 pkgdesc='Diff JSON and JSON-like structures in Python'
9 arch=(any)
10 url='https://github.com/xlwings/jsondiff'
11 license=(MIT)
12 depends=(python)
13 makedepends=(python-setuptools)
14 checkdepends=(python-nose python-nose-random)
15 source=("https://github.com/xlwings/jsondiff/archive/$pkgver/jsondiff-$pkgver.tar.gz")
16 sha256sums=('5cf3dfb212dcdc6ee104f40e30824a2f3ddaa05938d111ce0eea6646518b8339')
18 build() {
19   cd $_pkgname-$pkgver
20   python setup.py build
23 check() {
24   cd $_pkgname-$pkgver
25   nosetests -v tests
28 package() {
29   cd $_pkgname-$pkgver
30   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
31   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname