# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: David Moore <davidm@sjsoft.com>

pkgname=python-simplejson
pkgver=3.19.2
pkgrel=2
pkgdesc='Simple, fast and extensible JSON decoder/encoder'
license=(MIT)
arch=(x86_64 aarch64)
url='https://github.com/simplejson/simplejson'
depends=(python)
makedepends=(git python-setuptools)
checkdepends=(python-nose)
source=("git+$url#commit=532f41f870f6287ffe73882a313c2cc9c70f3cb6") # tag: v3.19.2
b2sums=('SKIP')

build() {
  cd simplejson
  python setup.py build
}

check() {
  nosetests -w simplejson
}

package_python-simplejson() {
  cd simplejson
  python setup.py install --root="$pkgdir"
  install -Dm644 ../simplejson/LICENSE.txt \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
