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