2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, python3, beancount }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (python3.pkgs) buildPythonApplication fetchPypi;
|
|
|
|
in
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "fava";
|
2020-12-03 08:41:04 +00:00
|
|
|
version = "1.17";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-03 08:41:04 +00:00
|
|
|
sha256 = "efad3a4b5697b9d7ee29eff5dc0c8367fc1df37b1abacc8d0b2071602e94a6cd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ python3.pkgs.pytest ];
|
|
|
|
propagatedBuildInputs = with python3.pkgs;
|
2020-07-18 16:06:22 +00:00
|
|
|
[
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
2020-07-18 16:06:22 +00:00
|
|
|
# the entry_slices and render_entries requires other files to pass
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2020-07-18 16:06:22 +00:00
|
|
|
py.test tests -k 'not cli and not static_url and not entry_slice and not render_entries'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://beancount.github.io/fava";
|
|
|
|
description = "Web interface for beancount";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ matthiasbeyer ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|