2021-04-02 20:38:55 +01:00
|
|
|
{ lib, python3 }:
|
2016-05-28 17:34:43 +01:00
|
|
|
|
2021-04-02 20:38:55 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2017-11-03 22:49:58 +00:00
|
|
|
pname = "fava";
|
2021-06-29 16:23:01 +01:00
|
|
|
version = "1.19";
|
2016-05-28 17:34:43 +01:00
|
|
|
|
2021-04-02 20:38:55 +01:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2017-11-03 22:49:58 +00:00
|
|
|
inherit pname version;
|
2021-06-29 16:23:01 +01:00
|
|
|
sha256 = "def7c0210bf0ce8dfffdb46ce21b3efcf71eba5a4e903565258419e4c53c2d43";
|
2016-05-28 17:34:43 +01:00
|
|
|
};
|
|
|
|
|
2021-04-01 10:12:36 +01:00
|
|
|
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
|
2021-04-02 20:38:55 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
Babel
|
2021-04-11 15:25:51 +01:00
|
|
|
beancount
|
2021-04-02 20:38:55 +01:00
|
|
|
cheroot
|
2021-04-11 15:25:51 +01:00
|
|
|
click
|
2021-04-02 20:38:55 +01:00
|
|
|
flask
|
2021-04-11 15:25:51 +01:00
|
|
|
flaskbabel
|
|
|
|
jaraco_functools
|
2021-04-02 20:38:55 +01:00
|
|
|
jinja2
|
|
|
|
markdown2
|
|
|
|
ply
|
|
|
|
simplejson
|
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMPDIR
|
2019-09-05 20:04:31 +01:00
|
|
|
'';
|
|
|
|
|
2021-04-02 20:38:55 +01:00
|
|
|
disabledTests = [
|
|
|
|
# runs fava in debug mode, which tries to interpret bash wrapper as Python
|
|
|
|
"test_cli"
|
|
|
|
];
|
|
|
|
|
2021-04-11 15:25:51 +01:00
|
|
|
meta = with lib; {
|
2016-05-28 17:34:43 +01:00
|
|
|
description = "Web interface for beancount";
|
2021-04-11 15:25:51 +01:00
|
|
|
homepage = "https://beancount.github.io/fava";
|
|
|
|
changelog = "https://beancount.github.io/fava/changelog.html";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2016-05-28 17:34:43 +01:00
|
|
|
};
|
|
|
|
}
|