# Contributor: Aiden Grossman # Maintainer: Aiden Grossman pkgname=py3-airium pkgver=0.2.5 pkgrel=2 pkgdesc="Bidirectional HTML to Python Translator" url="https://gitlab.com/kamichal/airium" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools" checkdepends="pytest" subpackages="$pkgname-pyc" source="https://gitlab.com/kamichal/airium/-/archive/v$pkgver/airium-v$pkgver.tar.gz fix-extras-require.patch " builddir="$srcdir/airium-v$pkgver/" build() { python3 setup.py build } check() { # test_backward appears to be broken # tests omitted from test_main_entry require network usage # test_dependencies_message requires the package to be installed # test_context_single_tag_missing_braces: TypeError: 'type' object does not support the context manager protocol pytest \ --ignore tests/test_translation.py \ --deselect tests/test_boiler_hello.py::test_backward \ --deselect tests/test_main_entry.py::test_get_bad_content_type \ --deselect tests/test_main_entry.py::test_translate_local_file \ --deselect tests/test_main_entry.py::test_translate_remote_file \ --deselect tests/test_when_no_deps.py::test_dependencies_message \ --deselect tests/test_airium.py::test_context_single_tag_missing_braces \ --deselect tests/test_airium.py::test_context_paired_tag_missing_braces } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 25aff571f81472eb54d944fa64e651178f6c5df211cf54c2d673a59e710a9572c36a3bec7c3aa755bfc7b51153eb02a4882eb1b45711c02a021d6c6e21e964fb airium-v0.2.5.tar.gz 3a5672ce60f9bc8f69c751f0d03ec31fea4e668ed1c31340e8d1910aeaffbb2d51cd1d09fa504f5611de1e61c46a76cb808c5b943c72d71e5e15d47a705d43b6 fix-extras-require.patch "