depot/third_party/nixpkgs/pkgs/applications/office/fava/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

55 lines
1.1 KiB
Nix

{ lib, python3, fetchPypi }:
python3.pkgs.buildPythonApplication rec {
pname = "fava";
version = "1.27";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-M2uE+/hYUP/l9l5zP/lHJsbMzfQ77cEJBFzbmX29gzM=";
};
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
propagatedBuildInputs = with python3.pkgs; [
babel
beancount
cheroot
click
flask
flask-babel
jaraco-functools
jinja2
markdown2
ply
simplejson
werkzeug
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'setuptools_scm>=8.0' 'setuptools_scm'
'';
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 ];
};
}