fava: modernize expression
This commit is contained in:
parent
a82f4038d3
commit
8f7d916cce
1 changed files with 29 additions and 26 deletions
|
@ -1,21 +1,17 @@
|
|||
{ lib, python3, beancount }:
|
||||
{ lib, python3 }:
|
||||
|
||||
let
|
||||
inherit (python3.pkgs) buildPythonApplication fetchPypi;
|
||||
in
|
||||
buildPythonApplication rec {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "fava";
|
||||
version = "1.18";
|
||||
|
||||
src = fetchPypi {
|
||||
src = python3.pkgs.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "21336b695708497e6f00cab77135b174c51feb2713b657e0e208282960885bf5";
|
||||
};
|
||||
|
||||
checkInputs = [ python3.pkgs.pytest ];
|
||||
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
|
||||
propagatedBuildInputs = with python3.pkgs;
|
||||
[
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
Babel
|
||||
cheroot
|
||||
flaskbabel
|
||||
|
@ -30,12 +26,19 @@ buildPythonApplication rec {
|
|||
jaraco_functools
|
||||
];
|
||||
|
||||
# CLI test expects fava on $PATH. Not sure why static_url fails.
|
||||
# the entry_slices and render_entries requires other files to pass
|
||||
checkPhase = ''
|
||||
py.test tests -k 'not cli and not static_url and not entry_slice and not render_entries'
|
||||
checkInputs = 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 = {
|
||||
homepage = "https://beancount.github.io/fava";
|
||||
description = "Web interface for beancount";
|
||||
|
|
Loading…
Reference in a new issue