* update python-simplejson to 3.19.2-4
This commit is contained in:
parent
0393f5fe13
commit
767fd5b676
@ -5,30 +5,38 @@
|
||||
# Contributor: David Moore <davidm@sjsoft.com>
|
||||
|
||||
pkgname=python-simplejson
|
||||
_name="${pkgname#python-}"
|
||||
pkgver=3.19.2
|
||||
pkgrel=2
|
||||
pkgrel=4
|
||||
pkgdesc='Simple, fast and extensible JSON decoder/encoder'
|
||||
license=(MIT)
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
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')
|
||||
depends=(
|
||||
glibc
|
||||
python
|
||||
)
|
||||
makedepends=(
|
||||
python-build
|
||||
python-installer
|
||||
python-setuptools
|
||||
python-wheel
|
||||
)
|
||||
source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
|
||||
b2sums=('3458629073fb0c09aefa3d0ed4b9a32040a7f2f32f0ae3701843511b3a25a5a7e41cc4221169cea441e1d072f17a6af4b903c1d5cfd2fe17dcd00d66c7cae116')
|
||||
|
||||
build() {
|
||||
cd simplejson
|
||||
python setup.py build
|
||||
cd $_name-$pkgver
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
nosetests -w simplejson
|
||||
cd $_name-$pkgver
|
||||
python -m unittest discover -v
|
||||
}
|
||||
|
||||
package_python-simplejson() {
|
||||
cd simplejson
|
||||
python setup.py install --root="$pkgdir"
|
||||
install -Dm644 ../simplejson/LICENSE.txt \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
cd $_name-$pkgver
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user