Commit 6fa392fa authored by polyfloyd's avatar polyfloyd
Browse files

gnucash: Enable python bindings by default

parent 69f4b7cd
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -25,12 +25,9 @@
  swig,
  webkitgtk_4_0,
  wrapGAppsHook3,
  python ? null,
  enablePython ? false,
  python3,
}:

assert enablePython -> (python != null);

stdenv.mkDerivation rec {
  pname = "gnucash";
  version = "5.11";
@@ -49,7 +46,7 @@ stdenv.mkDerivation rec {
    pkg-config
  ];

  cmakeFlags = lib.optional enablePython [
  cmakeFlags = [
    "-DWITH_PYTHON=\"ON\""
    "-DPYTHON_SYSCONFIG_BUILD=\"$out\""
  ];
@@ -72,13 +69,13 @@ stdenv.mkDerivation rec {
      libxslt
      swig
      webkitgtk_4_0
      python3
    ]
    ++ (with perlPackages; [
      JSONParse
      FinanceQuote
      perl
    ])
    ++ lib.optional enablePython python;
    ]);

  patches = [
    # this patch disables test-gnc-timezone and test-gnc-datetime which fail due to nix datetime challenges
+5 −4
Original line number Diff line number Diff line
@@ -5605,10 +5605,11 @@ self: super: with self; {
  gntp = callPackage ../development/python-modules/gntp { };
  gnucash = toPythonModule (pkgs.gnucash.override {
    inherit (self) python;
    enablePython = true;
  });
  gnucash = toPythonModule (
    pkgs.gnucash.override {
      python3 = python;
    }
  );
  gnureadline = callPackage ../development/python-modules/gnureadline { };