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