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

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

62 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, python3, fetchpatch }:
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";
version = "1.21";
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;
sha256 = "sha256-0aFCKEjmXn6yddgNMi9t4rzqHcN7VBLoz3LEg9apmNY=";
2016-05-28 16:34:43 +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"
];
})
];
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
2021-04-02 19:38:55 +00:00
propagatedBuildInputs = with python3.pkgs; [
babel
beancount
2021-04-02 19:38:55 +00:00
cheroot
click
2021-04-02 19:38:55 +00:00
flask
flaskbabel
jaraco_functools
2021-04-02 19:38:55 +00:00
jinja2
markdown2
ply
simplejson
werkzeug
];
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"
];
meta = with lib; {
2016-05-28 16:34:43 +00: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 16:34:43 +00:00
};
}