ledger: build python bindings with python3

Upstream supports python3 in the version we have, so we can upgrade. Tested with
`ledger python` on my files and it seems to work fine.

+4 -4
+4 -4
pkgs/applications/office/ledger/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python 1 + { stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python3 2 2 , texinfo, gnused, usePython ? true }: 3 3 4 4 stdenv.mkDerivation rec { ··· 15 15 outputs = [ "out" "dev" ]; 16 16 17 17 buildInputs = [ 18 - (boost.override { enablePython = usePython; }) 19 - gmp mpfr libedit python gnused 18 + (boost.override { enablePython = usePython; python = python3; }) 19 + gmp mpfr libedit python3 gnused 20 20 ]; 21 21 22 22 nativeBuildInputs = [ cmake texinfo ]; ··· 31 31 # however, that would write to a different nixstore path, pass our own sitePackages location 32 32 prePatch = lib.optionalString usePython '' 33 33 substituteInPlace src/CMakeLists.txt \ 34 - --replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${python.sitePackages}"' 34 + --replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${python3.sitePackages}"' 35 35 ''; 36 36 37 37 installTargets = [ "doc" "install" ];