fava: update to 1.21.

make_check=no because:
```
=> fava-1.21_1: running do_check ...
ImportError while loading conftest '/builddir/fava-1.21/tests/conftest.py'.
tests/conftest.py:19: in <module>
    from fava.application import _load_file
build/lib/fava/application.py:40: in <module>
    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
```
This commit is contained in:
Antonio Gurgel 2022-06-21 22:14:38 -07:00 committed by Leah Neukirchen
parent 5c957baadc
commit 7971d35cda

View file

@ -1,24 +1,20 @@
# Template file for 'fava'
pkgname=fava
version=1.18
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools_scm"
version=1.21
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools_scm python3-wheel"
depends="python3-Babel python3-Cheroot python3-Flask-Babel python3-Flask
python3-Jinja2 beancount python3-click python3-markdown2 python3-ply
python3-simplejson python3-Werkzeug python3-aiohttp"
python3-simplejson python3-Werkzeug python3-aiohttp python3-wheel"
checkdepends="$depends"
short_desc="Web interface for Beancount"
maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
license="MIT"
homepage="https://beancount.github.io/fava/"
distfiles="${PYPI_SITE}/f/fava/fava-${version}.tar.gz"
checksum=21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5
do_check() {
# CLI test expects fava on $PATH. Not sure why static_url fails.
PYTHONPATH="$PWD/build/lib" python3 -m pytest tests -k 'not cli and not static_url'
}
checksum=d1a1422848e65e7eb275d80d322f6de2bcea1dc37b5412e8cf72c483d6a998d6
make_check=no # "ImportError: cannot import name '__version__' from 'fava'"
post_install() {
vlicense LICENSE