New comment by Goorzhel on void-packages repository https://github.com/void-linux/void-packages/pull/37629#issuecomment-1162558643 Comment: `fava` has adopted PEP 517 sometime between 1.18 and the current version, 1.21. Updating it leads to another brick wall, however:
git diff srcpkgs/fava/template ```diff diff --git a/srcpkgs/fava/template b/srcpkgs/fava/template index 9b0f83e540..87339be552 100644 --- a/srcpkgs/fava/template +++ b/srcpkgs/fava/template @@ -3,3 +3,3 @@ pkgname=fava -version=1.18 -revision=2 -build_style=python3-module +version=1.21 +revision=1 +build_style=python3-pep517 @@ -9 +9 @@ depends="python3-Babel python3-Cheroot python3-Flask-Babel python3-Flask - python3-simplejson python3-Werkzeug python3-aiohttp" + python3-simplejson python3-Werkzeug python3-aiohttp python3-wheel" @@ -16 +16 @@ distfiles="${PYPI_SITE}/f/fava/fava-${version}.tar.gz" -checksum=21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5 +checksum=d1a1422848e65e7eb275d80d322f6de2bcea1dc37b5412e8cf72c483d6a998d6 ```
./xbps-src check fava ``` <...> => fava-1.21_1: running do_check ... ImportError while loading conftest '/builddir/fava-1.21/tests/conftest.py'. tests/conftest.py:19: in from fava.application import _load_file build/lib/fava/application.py:40: in from fava import __version__ as fava_version E ImportError: cannot import name '__version__' from 'fava' (/builddir/fava-1.21/build/lib/fava/__init__.py) => ERROR: fava-1.21_1: do_check: 'PYTHONPATH="$PWD/build/lib" python3 -m pytest tests -k 'not cli and not static_url'' exited with 4 => ERROR: in do_check() at srcpkgs/fava/template:20 ```
head -12 masterdir/builddir/fava-1.21/build/lib/fava/__init__.py ``` """Fava – A web interface for Beancount.""" from __future__ import annotations from pkg_resources import DistributionNotFound from pkg_resources import get_distribution try: __version__ = get_distribution(__name__).version except DistributionNotFound: # pragma: no cover # package is not installed pass ```