teamspeak5_client: 5.0.0-beta77 -> 6.0.0-beta2; teamspeak refactors (#377748)
[NixPkgs.git] / pkgs / by-name / fa / fava / package.nix
blobcf346b7c36406edfec91a3c876808bd94fc09d20
2   lib,
3   python3Packages,
4   fetchPypi,
5 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "fava";
9   version = "1.29";
10   pyproject = true;
12   src = fetchPypi {
13     inherit pname version;
14     hash = "sha256-UZZ142FchYXqPtHb6EWnKjV+xtJ0Gvu+SovTH6+kVn8=";
15   };
17   postPatch = ''
18     substituteInPlace tests/test_cli.py \
19       --replace-fail '"fava"' '"${placeholder "out"}/bin/fava"'
20   '';
22   build-system = [ python3Packages.setuptools-scm ];
24   dependencies = with python3Packages; [
25     babel
26     beancount
27     cheroot
28     click
29     flask
30     flask-babel
31     jaraco-functools
32     jinja2
33     markdown2
34     ply
35     simplejson
36     werkzeug
37     watchfiles
38   ];
40   nativeCheckInputs = [ python3Packages.pytestCheckHook ];
42   preCheck = ''
43     export HOME=$TEMPDIR
44   '';
46   meta = with lib; {
47     description = "Web interface for beancount";
48     mainProgram = "fava";
49     homepage = "https://beancount.github.io/fava";
50     changelog = "https://beancount.github.io/fava/changelog.html";
51     license = licenses.mit;
52     maintainers = with maintainers; [
53       bhipple
54       sigmanificient
55     ];
56   };