3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/fava/default.nix

42 lines
893 B
Nix
Raw Normal View History

2017-11-03 22:49:58 +00:00
{ stdenv, python3, beancount }:
2016-05-28 17:34:43 +01:00
2017-11-03 22:49:58 +00:00
let
inherit (python3.pkgs) buildPythonApplication fetchPypi;
in
buildPythonApplication rec {
pname = "fava";
2019-09-05 20:04:31 +01:00
version = "1.11";
2016-05-28 17:34:43 +01:00
2017-11-03 22:49:58 +00:00
src = fetchPypi {
inherit pname version;
2019-09-05 20:04:31 +01:00
sha256 = "0gyrxqmfr8igfjnp9lcsl4km17yakj556xns3jp4m9l2407b5zhc";
2016-05-28 17:34:43 +01:00
};
2019-09-05 20:04:31 +01:00
checkInputs = [ python3.pkgs.pytest ];
2017-11-03 22:49:58 +00:00
propagatedBuildInputs = with python3.pkgs;
2019-01-14 12:16:24 +00:00
[
Babel
cheroot
flaskbabel
flask
jinja2
beancount
click
markdown2
ply
simplejson
];
2016-05-28 17:34:43 +01:00
2019-09-05 20:04:31 +01:00
# CLI test expects fava on $PATH. Not sure why static_url fails.
checkPhase = ''
py.test tests -k 'not cli and not static_url'
'';
2016-05-28 17:34:43 +01:00
meta = {
2017-11-03 22:49:58 +00:00
homepage = https://beancount.github.io/fava;
2016-05-28 17:34:43 +01:00
description = "Web interface for beancount";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ matthiasbeyer ];
2016-05-28 17:34:43 +01:00
};
}