nixpkgs/pkgs/applications/office/fava/default.nix

45 lines
1.0 KiB
Nix
Raw Normal View History

2017-11-03 15:49:58 -07:00
{ stdenv, python3, beancount }:
2016-05-28 09:34:43 -07:00
2017-11-03 15:49:58 -07:00
let
inherit (python3.pkgs) buildPythonApplication fetchPypi;
in
buildPythonApplication rec {
pname = "fava";
2020-10-24 17:37:40 -07:00
version = "1.16";
2016-05-28 09:34:43 -07:00
2017-11-03 15:49:58 -07:00
src = fetchPypi {
inherit pname version;
2020-10-24 17:37:40 -07:00
sha256 = "436b6f9441a638f8028729c2a39c28433f7878c2af6ddb9bfccaeea9ea3086e1";
2016-05-28 09:34:43 -07:00
};
2019-09-05 12:04:31 -07:00
checkInputs = [ python3.pkgs.pytest ];
2017-11-03 15:49:58 -07:00
propagatedBuildInputs = with python3.pkgs;
2020-06-22 17:47:11 -07:00
[
2019-01-14 04:16:24 -08:00
Babel
cheroot
flaskbabel
flask
jinja2
beancount
click
markdown2
ply
simplejson
2019-12-07 23:45:59 -08:00
werkzeug
2019-11-11 18:41:44 -08:00
jaraco_functools
2019-01-14 04:16:24 -08:00
];
2016-05-28 09:34:43 -07:00
2019-09-05 12:04:31 -07:00
# CLI test expects fava on $PATH. Not sure why static_url fails.
2020-06-22 17:47:11 -07:00
# the entry_slices and render_entries requires other files to pass
2019-09-05 12:04:31 -07:00
checkPhase = ''
2020-06-22 17:47:11 -07:00
py.test tests -k 'not cli and not static_url and not entry_slice and not render_entries'
2019-09-05 12:04:31 -07:00
'';
2016-05-28 09:34:43 -07:00
meta = {
homepage = "https://beancount.github.io/fava";
2016-05-28 09:34:43 -07:00
description = "Web interface for beancount";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ matthiasbeyer ];
2016-05-28 09:34:43 -07:00
};
}