Commit 207e4d54 authored by Bruno BELANYI's avatar Bruno BELANYI
Browse files

fava: move to python3Packages

parent 4e93b362
Loading
Loading
Loading
Loading
+24 −6
Original line number Diff line number Diff line
{
  lib,
  python3Packages,
  buildPythonPackage,
  buildNpmPackage,
  fetchFromGitHub,
  stdenv,
  babel,
  beancount,
  beangulp,
  beanquery,
  cheroot,
  click,
  flask,
  flask-babel,
  jinja2,
  markdown2,
  ply,
  pytestCheckHook,
  setuptools-scm,
  simplejson,
  watchfiles,
  werkzeug,
}:
let
  src = buildNpmPackage (finalAttrs: {
@@ -32,7 +48,7 @@ let
    '';
  });
in
python3Packages.buildPythonApplication {
buildPythonPackage {
  pname = "fava";
  inherit (src) version;
  pyproject = true;
@@ -46,9 +62,9 @@ python3Packages.buildPythonApplication {
      --replace-fail '"fava"' '"${placeholder "out"}/bin/fava"'
  '';

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

  dependencies = with python3Packages; [
  dependencies = [
    babel
    beancount
    beangulp
@@ -65,7 +81,9 @@ python3Packages.buildPythonApplication {
    watchfiles
  ];

  nativeCheckInputs = [ python3Packages.pytestCheckHook ];
  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "fava" ];

  # tests/test_cli.py
  __darwinAllowLocalNetworking = true;
@@ -75,7 +93,7 @@ python3Packages.buildPythonApplication {

  env = {
    # Disable some tests when building with beancount2
    SNAPSHOT_IGNORE = lib.versions.major python3Packages.beancount.version == "2";
    SNAPSHOT_IGNORE = lib.versions.major beancount.version == "2";
  };

  meta = {
+2 −0
Original line number Diff line number Diff line
@@ -5202,6 +5202,8 @@ self: super: with self; {
  faust-cchardet = callPackage ../development/python-modules/faust-cchardet { };
  fava = callPackage ../development/python-modules/fava { };
  favicon = callPackage ../development/python-modules/favicon { };
  fe25519 = callPackage ../development/python-modules/fe25519 { };