My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/applications/office/fava/default.nix

45 lines
1.0 KiB

{ lib, python3, beancount }:
let
inherit (python3.pkgs) buildPythonApplication fetchPypi;
in
buildPythonApplication rec {
pname = "fava";
version = "1.18";
src = fetchPypi {
inherit pname version;
sha256 = "21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5";
};
checkInputs = [ python3.pkgs.pytest ];
propagatedBuildInputs = with python3.pkgs;
4 years ago
[
6 years ago
Babel
cheroot
flaskbabel
flask
jinja2
beancount
click
markdown2
ply
simplejson
werkzeug
jaraco_functools
6 years ago
];
# CLI test expects fava on $PATH. Not sure why static_url fails.
4 years ago
# the entry_slices and render_entries requires other files to pass
checkPhase = ''
4 years ago
py.test tests -k 'not cli and not static_url and not entry_slice and not render_entries'
'';
meta = {
homepage = "https://beancount.github.io/fava";
description = "Web interface for beancount";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ matthiasbeyer ];
};
}