nixpkgs/pkgs/applications/office/fava/default.nix

49 lines
955 B
Nix
Raw Normal View History

2021-04-02 19:38:55 +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";
2021-01-18 00:20:00 +00:00
version = "1.18";
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;
2021-01-18 00:20:00 +00:00
sha256 = "21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5";
2016-05-28 16:34:43 +00:00
};
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
2021-04-02 19:38:55 +00:00
propagatedBuildInputs = with python3.pkgs; [
Babel
cheroot
flaskbabel
flask
jinja2
beancount
click
markdown2
ply
simplejson
werkzeug
jaraco_functools
];
checkInputs = with python3.pkgs; [
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"
];
2016-05-28 16:34:43 +00:00
meta = {
homepage = "https://beancount.github.io/fava";
2016-05-28 16:34:43 +00:00
description = "Web interface for beancount";
2021-01-15 05:42:41 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ matthiasbeyer ];
2016-05-28 16:34:43 +00:00
};
}