Unverified Commit f7fa2daf authored by Matthias Beyer's avatar Matthias Beyer Committed by GitHub
Browse files

Merge pull request #330043 from Sigmanificient/fava

fava: 1.27.3 -> 1.28
parents 335a118f e9607889
Loading
Loading
Loading
Loading
+57 −0
Original line number Diff line number Diff line
{ lib, python3, fetchPypi }:
{
  lib,
  python3Packages,
  fetchPypi,
}:

python3.pkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "fava";
  version = "1.27.3";
  format = "pyproject";
  version = "1.28";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-GsnXZaazEiOhyjbIinHRD1fdoqlAp3d5csrmtydxmGM=";
    hash = "sha256-sWHVkR0/0VMGzH5OMxOCK4usf7G0odzMtr82ESRQhrk=";
  };

  nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
  postPatch = ''
    substituteInPlace tests/test_cli.py \
      --replace-fail '"fava"' '"${placeholder "out"}/bin/fava"'
  '';

  build-system = [ python3Packages.setuptools-scm ];

  propagatedBuildInputs = with python3.pkgs; [
  dependencies = with python3Packages; [
    babel
    beancount
    cheroot
@@ -25,32 +34,24 @@ python3.pkgs.buildPythonApplication rec {
    ply
    simplejson
    werkzeug
    watchfiles
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'setuptools_scm>=8.0' 'setuptools_scm'
  '';
  nativeCheckInputs = [ python3Packages.pytestCheckHook ];

  preCheck = ''
    export HOME=$TEMPDIR
  '';

  disabledTests = [
    # runs fava in debug mode, which tries to interpret bash wrapper as Python
    "test_cli"
  ];

  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 ];
    maintainers = with maintainers; [
      bhipple
      sigmanificient
    ];
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -35603,8 +35603,6 @@ with pkgs;
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  fava = callPackage ../applications/office/fava { };
  nux = callPackage ../tools/misc/nux { };
  phonemizer = with python3Packages; toPythonApplication phonemizer;