2022-04-27 09:35:20 +00:00
|
|
|
{ lib, python3, fetchpatch }:
|
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";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "1.21";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-0aFCKEjmXn6yddgNMi9t4rzqHcN7VBLoz3LEg9apmNY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# Update werkzeug compatibility
|
|
|
|
url = "https://github.com/beancount/fava/commit/5a99417a42e1d739b1e57fae2d01ff1d146dcbc2.patch";
|
|
|
|
hash = "sha256-Y6IcxZAcFJEYgT8/xBIABdkP+pUdQX1EgSS5uNdSJUE=";
|
|
|
|
excludes = [
|
|
|
|
".pre-commit-config.yaml"
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
|
|
|
|
|
|
|
|
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
|
2021-04-12 18:23:04 +00:00
|
|
|
flaskbabel
|
|
|
|
jaraco_functools
|
2021-04-05 15:23:46 +00:00
|
|
|
jinja2
|
|
|
|
markdown2
|
|
|
|
ply
|
|
|
|
simplejson
|
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|