2022-07-22 19:27:24 +00:00
|
|
|
{ lib, python3 }:
|
2016-05-28 16:34:43 +00:00
|
|
|
|
2021-04-02 19:38:55 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2017-11-03 22:49:58 +00:00
|
|
|
pname = "fava";
|
2023-02-21 22:27:06 +00:00
|
|
|
version = "1.24";
|
2022-04-14 11:54:53 +00:00
|
|
|
format = "pyproject";
|
2016-05-28 16:34:43 +00:00
|
|
|
|
2021-04-02 19:38:55 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2017-11-03 22:49:58 +00:00
|
|
|
inherit pname version;
|
2023-02-21 22:27:06 +00:00
|
|
|
hash = "sha256-Ep+8O93L/CG4qcBFzCBMRasK/ySp8+cU59LcyZRTJtg=";
|
2016-05-28 16:34:43 +00:00
|
|
|
};
|
|
|
|
|
2023-02-21 22:27:06 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
|
2021-04-02 19:38:55 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-05-08 23:53:28 +00:00
|
|
|
babel
|
2021-04-11 14:25:51 +00:00
|
|
|
beancount
|
2021-04-02 19:38:55 +00:00
|
|
|
cheroot
|
2021-04-11 14:25:51 +00:00
|
|
|
click
|
2021-04-02 19:38:55 +00:00
|
|
|
flask
|
2023-01-19 21:04:35 +00:00
|
|
|
flask-babel
|
2021-04-11 14:25:51 +00:00
|
|
|
jaraco_functools
|
2021-04-02 19:38:55 +00:00
|
|
|
jinja2
|
|
|
|
markdown2
|
|
|
|
ply
|
|
|
|
simplejson
|
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-04-02 19:38:55 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMPDIR
|
2019-09-05 19:04:31 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-02 19:38:55 +00:00
|
|
|
disabledTests = [
|
|
|
|
# runs fava in debug mode, which tries to interpret bash wrapper as Python
|
|
|
|
"test_cli"
|
|
|
|
];
|
|
|
|
|
2021-04-11 14:25:51 +00:00
|
|
|
meta = with lib; {
|
2016-05-28 16:34:43 +00:00
|
|
|
description = "Web interface for beancount";
|
2021-04-11 14:25:51 +00: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 16:34:43 +00:00
|
|
|
};
|
|
|
|
}
|