# Contributor: Andy Hawkins # Maintainer: Andy Hawkins pkgname=py3-nestedtext pkgver=3.5 pkgrel=1 pkgdesc="A Human Friendly Data Format" url="https://nestedtext.org/" arch="noarch" license="MIT" depends=" py3-inform>=1.25 " makedepends=" py3-flit-core py3-gpep517 py3-installer " checkdepends=" py3-pytest py3-arrow py3-docopt py3-inform py3-hypothesis py3-natsort py3-parametrize-from-file py3-pydantic py3-email-validator py3-yaml py3-quantiphy py3-requests py3-shlib py3-voluptuous " _official_tests_hash="82b4393e54ff40723d950cfaa004ac267f3ba350" source="https://github.com/KenKundert/nestedtext/archive/v$pkgver/nestedtext-v$pkgver.tar.gz https://github.com/KenKundert/nestedtext_tests/archive/$_official_tests_hash.zip" builddir="$srcdir/nestedtext-$pkgver" # disable tests temporarily due to circular dependency for python 3.10 rebuild # py3-nestedtext -> py3-quantiphy -> py3-parametrize-from-file -> py3-nestedtext options="!check" build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } prepare() { default_prepare cp -r $srcdir/nestedtext_tests-$_official_tests_hash/* $builddir/tests/official_tests/ } check() { PY_IGNORE_IMPORTMISMATCH=1 PYTHONPATH="$PWD/build/lib" pytest } package() { python3 -m installer -d "$pkgdir" \ dist/nestedtext-$pkgver*-py3-none-any.whl } sha512sums=" 1ac7d1f1a51312f8a0134b6ba4fa1cbf07a462b026063c3750cf40ecec3de799dadfca3e2bbe791e5c063095b36d7d65fe48c0ddeba4a53d48f439a1d5f553c4 nestedtext-v3.5.tar.gz dbd03a9e847a3f7984d0422b0806c11a606c3555249865d5947114eb7c5a112076393173f8f560b850750b615c13960a37391d72b88293304a92d5c8a52f6f74 82b4393e54ff40723d950cfaa004ac267f3ba350.zip "