gnucash: Enable python bindings by default

This commit is contained in:
polyfloyd
2025-04-07 22:16:45 +02:00
parent 69f4b7cdd6
commit 6fa392fa43
2 changed files with 9 additions and 11 deletions
+4 -7
View File
@@ -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
View File
@@ -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 { };