diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-04-03 01:33:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 01:33:08 +0200 |
commit | 64cf4e0c98442e3acd86fd307efaf51a5c21fb62 (patch) | |
tree | b975860a09359f483f4007ea22b9238ef1778959 /pkgs/applications | |
parent | d535600060e15e7fc2a0a396c80af3dc222cbb74 (diff) | |
parent | 8f7d916cce397a867deaf1821c57052ea0160e5b (diff) | |
download | nixpkgs-64cf4e0c98442e3acd86fd307efaf51a5c21fb62.tar nixpkgs-64cf4e0c98442e3acd86fd307efaf51a5c21fb62.tar.gz nixpkgs-64cf4e0c98442e3acd86fd307efaf51a5c21fb62.tar.bz2 nixpkgs-64cf4e0c98442e3acd86fd307efaf51a5c21fb62.tar.lz nixpkgs-64cf4e0c98442e3acd86fd307efaf51a5c21fb62.tar.xz nixpkgs-64cf4e0c98442e3acd86fd307efaf51a5c21fb62.tar.zst nixpkgs-64cf4e0c98442e3acd86fd307efaf51a5c21fb62.zip |
Merge pull request #118355 from dotlambda/fava-pytestCheckHook
fava: modernize expression
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/office/fava/default.nix | 57 |
1 files changed, 30 insertions, 27 deletions
diff --git a/pkgs/applications/office/fava/default.nix b/pkgs/applications/office/fava/default.nix index 77208e05bd9..4f32486ffe1 100644 --- a/pkgs/applications/office/fava/default.nix +++ b/pkgs/applications/office/fava/default.nix @@ -1,41 +1,44 @@ -{ lib, python3, beancount }: +{ lib, python3 }: -let - inherit (python3.pkgs) buildPythonApplication fetchPypi; -in -buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "fava"; version = "1.18"; - src = fetchPypi { + src = python3.pkgs.fetchPypi { inherit pname version; sha256 = "21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5"; }; - checkInputs = [ python3.pkgs.pytest ]; nativeBuildInputs = with python3.pkgs; [ setuptools-scm ]; - propagatedBuildInputs = with python3.pkgs; - [ - Babel - cheroot - flaskbabel - flask - jinja2 - beancount - click - markdown2 - ply - simplejson - werkzeug - jaraco_functools - ]; - - # CLI test expects fava on $PATH. Not sure why static_url fails. - # the entry_slices and render_entries requires other files to pass - checkPhase = '' - py.test tests -k 'not cli and not static_url and not entry_slice and not render_entries' + + propagatedBuildInputs = with python3.pkgs; [ + Babel + cheroot + flaskbabel + flask + jinja2 + beancount + click + markdown2 + ply + simplejson + werkzeug + jaraco_functools + ]; + + checkInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + preCheck = '' + export HOME=$TEMPDIR ''; + disabledTests = [ + # runs fava in debug mode, which tries to interpret bash wrapper as Python + "test_cli" + ]; + meta = { homepage = "https://beancount.github.io/fava"; description = "Web interface for beancount"; |