diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-04-09 18:28:16 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-04-12 18:46:15 +0000 |
commit | fd2e737e0678ee7d8081baef05b305146a2c0034 (patch) | |
tree | ac3e9b27576a0382335532d126f9a66d486bc638 /nixpkgs/pkgs/applications/office/fava | |
parent | cc207d720b6aa836e256c1ee9842bc739e630a8a (diff) | |
parent | 9e377a6ce42dccd9b624ae4ce8f978dc892ba0e2 (diff) | |
download | nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.gz nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.bz2 nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.lz nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.xz nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.tar.zst nixlib-fd2e737e0678ee7d8081baef05b305146a2c0034.zip |
Merge remote-tracking branch 'nixpkgs/nixos-unstable'
Diffstat (limited to 'nixpkgs/pkgs/applications/office/fava')
-rw-r--r-- | nixpkgs/pkgs/applications/office/fava/default.nix | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/nixpkgs/pkgs/applications/office/fava/default.nix b/nixpkgs/pkgs/applications/office/fava/default.nix index b070683e6f2a..4f32486ffe1f 100644 --- a/nixpkgs/pkgs/applications/office/fava/default.nix +++ b/nixpkgs/pkgs/applications/office/fava/default.nix @@ -1,40 +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 ]; - 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' + nativeBuildInputs = with python3.pkgs; [ setuptools-scm ]; + + 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"; |