about summary refs log tree commit diff
path: root/pkgs/by-name/fa
diff options
context:
space:
mode:
authorMatthias Beyer2024-07-29 08:41:33 +0200
committerGitHub2024-07-29 08:41:33 +0200
commitf7fa2daf89f7204b7293bf057cf439745ff562c4 (patch)
treeb9dc4580bcb40f577ce436ebf9125d9288dbc237 /pkgs/by-name/fa
parent335a118f40ed843deabc95b882dff4b9dc72c4e4 (diff)
parente96078899dbe456d663521702441fdfcf6940f3c (diff)
Merge pull request #330043 from Sigmanificient/fava
fava: 1.27.3 -> 1.28
Diffstat (limited to 'pkgs/by-name/fa')
-rw-r--r--pkgs/by-name/fa/fava/package.nix57
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
+    ];
+  };
+}