3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/fava/default.nix
Nick Cao 67cf54525f
Merge pull request #211520 from elohmeier/fava-fix
fava: loosen cheroot version requirement
2023-01-23 13:59:25 +08:00

53 lines
1.1 KiB
Nix

{ lib, python3 }:
python3.pkgs.buildPythonApplication rec {
pname = "fava";
version = "1.23.1";
format = "pyproject";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-Uw8UIJa+Dtsy+o31I1ynLyhZrFNX42NFRXu1O2ISbzU=";
};
pythonRelaxDeps = [ "cheroot" ];
nativeBuildInputs = with python3.pkgs; [ setuptools-scm pythonRelaxDepsHook ];
propagatedBuildInputs = with python3.pkgs; [
babel
beancount
cheroot
click
flask
flaskbabel
jaraco_functools
jinja2
markdown2
ply
simplejson
werkzeug
];
nativeCheckInputs = 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 ];
};
}