name='python3-hjson' version='3.1.0' release='3' desc='JSON for Humans, allows comments and is less error prone.' desc_ru='Библиотека Python для удобного JSON с поддержкой комментариев' homepage='https://github.com/laktak/hjson-py' maintainer="Evgeny Khramov " maintainer_ru="Евгений Храмов " architectures=('all') license=('MIT') provides=('hjson') conflicts=('hjson') deps=('python3') deps_alt=('python3') deps_arch=('python') deps_debian=('python3') deps_fedora=('python3') deps_redos=('python3') deps_rhel=('python3') deps_rosa=('python3') build_deps=( 'python3-build' 'python3-installer' 'python3-setuptools' 'python3-wheel' ) build_deps_alt=( 'python3-module-build' 'python3-module-installer' 'python3-module-setuptools' 'python3-module-wheel' ) build_deps_arch=( 'python-build' 'python-installer' 'python-setuptools' 'python-wheel' ) build_deps_debian=("${build_deps[@]}") build_deps_fedora=("${build_deps[@]}") build_deps_redos=("${build_deps[@]}") build_deps_rhel=("${build_deps[@]}") build_deps_rosa=("${build_deps[@]}") sources=("https://pypi.io/packages/source/h/hjson/hjson-${version}.tar.gz") checksums=('SKIP') build() { cd "hjson-${version}" python -m build --wheel --no-isolation } package() { cd "hjson-${version}" python -m installer --destdir="$pkgdir" dist/*.whl install-license LICENSE.txt ./${name}/LICENSE.txt } files() { files-find "./usr/lib/python3.*/site-packages/hjson" files-find "./usr/lib/python3.*/site-packages/hjson-*.dist-info" files-find-bin files-find-share "licenses" }