depot/third_party/nixpkgs/pkgs/applications/office/fava/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

50 lines
1 KiB
Nix

{ lib, python3 }:
python3.pkgs.buildPythonApplication rec {
pname = "fava";
version = "1.23";
format = "pyproject";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-dwJKSQiuggnseEbALSrT051Me/z1jpj/BjuxN0v5dpU=";
};
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
propagatedBuildInputs = with python3.pkgs; [
babel
beancount
cheroot
click
flask
flaskbabel
jaraco_functools
jinja2
markdown2
ply
simplejson
werkzeug
];
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 = with lib; {
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 ];
};
}