diff options
Diffstat (limited to 'pkgs/by-name/fa')
-rw-r--r-- | pkgs/by-name/fa/fava/package.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/by-name/fa/fava/package.nix b/pkgs/by-name/fa/fava/package.nix new file mode 100644 index 000000000000..fa17fdda10f0 --- /dev/null +++ b/pkgs/by-name/fa/fava/package.nix @@ -0,0 +1,57 @@ +{ + 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 + ]; + }; +} |