about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/office/fava/default.nix
blob: 4f32486ffe1f704ec2fc43deba603e7b2eefebcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib, python3 }:

python3.pkgs.buildPythonApplication rec {
  pname = "fava";
  version = "1.18";

  src = python3.pkgs.fetchPypi {
    inherit pname version;
    sha256 = "21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5";
  };

  nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];

  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
  '';

  disabledTests = [
    # runs fava in debug mode, which tries to interpret bash wrapper as Python
    "test_cli"
  ];

  meta = {
    homepage = "https://beancount.github.io/fava";
    description = "Web interface for beancount";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ matthiasbeyer ];
  };
}