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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1,018 B
Nix
Raw Normal View History

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