depot/third_party/nixpkgs/pkgs/by-name/fa/fava/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

57 lines
1.1 KiB
Nix

{
lib,
python3Packages,
fetchPypi,
}:
python3Packages.buildPythonApplication rec {
pname = "fava";
version = "1.28";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-sWHVkR0/0VMGzH5OMxOCK4usf7G0odzMtr82ESRQhrk=";
};
postPatch = ''
substituteInPlace tests/test_cli.py \
--replace-fail '"fava"' '"${placeholder "out"}/bin/fava"'
'';
build-system = [ python3Packages.setuptools-scm ];
dependencies = with python3Packages; [
babel
beancount
cheroot
click
flask
flask-babel
jaraco-functools
jinja2
markdown2
ply
simplejson
werkzeug
watchfiles
];
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
preCheck = ''
export HOME=$TEMPDIR
'';
meta = with lib; {
description = "Web interface for beancount";
mainProgram = "fava";
homepage = "https://beancount.github.io/fava";
changelog = "https://beancount.github.io/fava/changelog.html";
license = licenses.mit;
maintainers = with maintainers; [
bhipple
sigmanificient
];
};
}