mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-04 07:21:40 +01:00
31 lines
825 B
Plaintext
31 lines
825 B
Plaintext
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=py3-hjson
|
|
pkgver=3.0.2
|
|
pkgrel=1
|
|
pkgdesc="a Python user interface for JSON"
|
|
url="https://github.com/hjson/hjson-py"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/hjson/hjson-py/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/hjson-py-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="." pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/hjson/tests
|
|
}
|
|
|
|
sha512sums="f08541b981797859e39356d65916fff4fe6ec11a7deb98bd03efbbe7f1a1ea93f8cc4881c4e9d225086b489483d3960f0ef1a30333d403eacb5674c6c11336c6 py3-hjson-3.0.2.tar.gz"
|