10 python3Packages.buildPythonApplication rec {
11 pname = "ledger-autosync";
15 # no tests included in PyPI tarball
16 src = fetchFromGitHub {
18 repo = "ledger-autosync";
20 sha256 = "0n3y4qxsv1cyvyap95h3rj4bj1sinyfgsajygm7s8di3j5aabqr2";
23 nativeBuildInputs = with python3Packages; [
27 propagatedBuildInputs = with python3Packages; [
47 ] ++ lib.optional useLedger ledger
48 ++ lib.optional useHledger hledger;
50 # Checks require ledger as a python package,
51 # ledger does not support python3 while ledger-autosync requires it.
52 nativeCheckInputs = with python3Packages; [ ledger hledger nose mock pytestCheckHook ];
54 # Disable some non-passing tests:
55 # https://github.com/egh/ledger-autosync/issues/127
62 homepage = "https://github.com/egh/ledger-autosync";
63 description = "OFX/CSV autosync for ledger and hledger";
64 license = licenses.gpl3;
65 maintainers = with maintainers; [ eamsden ];