@@ -1,41 +1,44 @@
1−{ lib, python3, beancount }:
1+{ lib, python3 }:
22
3−let
4− inherit (python3.pkgs) buildPythonApplication fetchPypi;
5−in
6−buildPythonApplication rec {
3+python3.pkgs.buildPythonApplication rec {
74 pname = "fava";
85 version = "1.18";
96
10− src = fetchPypi {
7+ src = python3.pkgs.fetchPypi {
118 inherit pname version;
129 sha256 = "21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5";
1310 };
1411
15− checkInputs = [ python3.pkgs.pytest ];
1612 nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
17− propagatedBuildInputs = with python3.pkgs;
18− [
19− Babel
20− cheroot
21− flaskbabel
22− flask
23− jinja2
24− beancount
25− click
26− markdown2
27− ply
28− simplejson
29− werkzeug
30− jaraco_functools
31− ];
32−
33− # CLI test expects fava on $PATH. Not sure why static_url fails.
34− # the entry_slices and render_entries requires other files to pass
35− checkPhase = ''
36− py.test tests -k 'not cli and not static_url and not entry_slice and not render_entries'
13+
14+ propagatedBuildInputs = with python3.pkgs; [
15+ Babel
16+ cheroot
17+ flaskbabel
18+ flask
19+ jinja2
20+ beancount
21+ click
22+ markdown2
23+ ply
24+ simplejson
25+ werkzeug
26+ jaraco_functools
27+ ];
28+
29+ checkInputs = with python3.pkgs; [
30+ pytestCheckHook
31+ ];
32+
33+ preCheck = ''
34+ export HOME=$TEMPDIR
3735 '';
3836
37+ disabledTests = [
38+ # runs fava in debug mode, which tries to interpret bash wrapper as Python
39+ "test_cli"
40+ ];
41+
3942 meta = {
4043 homepage = "https://beancount.github.io/fava";
4144 description = "Web interface for beancount";