2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3, fetchPypi }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "fava";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.26.4";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-kQXojI57NYZgu3qXjtOL/a48YnXhuA6FEazhJ7jntqk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2021-04-12 18:23:04 +00:00
|
|
|
beancount
|
2021-04-05 15:23:46 +00:00
|
|
|
cheroot
|
2021-04-12 18:23:04 +00:00
|
|
|
click
|
2021-04-05 15:23:46 +00:00
|
|
|
flask
|
2023-02-09 11:40:11 +00:00
|
|
|
flask-babel
|
2023-08-04 22:07:22 +00:00
|
|
|
jaraco-functools
|
2021-04-05 15:23:46 +00:00
|
|
|
jinja2
|
|
|
|
markdown2
|
|
|
|
ply
|
|
|
|
simplejson
|
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-04-05 15:23:46 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'setuptools_scm>=8.0' 'setuptools_scm'
|
|
|
|
'';
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMPDIR
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
disabledTests = [
|
|
|
|
# runs fava in debug mode, which tries to interpret bash wrapper as Python
|
|
|
|
"test_cli"
|
|
|
|
];
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Web interface for beancount";
|
2021-04-12 18:23:04 +00:00
|
|
|
homepage = "https://beancount.github.io/fava";
|
|
|
|
changelog = "https://beancount.github.io/fava/changelog.html";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|