···991010python3Packages.buildPythonApplication rec {
1111 pname = "ledger-autosync";
1212- version = "unstable-2021-04-01";
1212+ version = "1.0.3";
1313+ format = "pyproject";
13141415 # no tests included in PyPI tarball
1516 src = fetchFromGitHub {
1617 owner = "egh";
1718 repo = "ledger-autosync";
1818- rev = "0b674c57c833f75b1a36d8caf78e1567c8e2180c";
1919- sha256 = "0q404gr85caib5hg83cnmgx4684l72w9slxyxrwsiwhlf7gm443q";
1919+ rev = "v${version}";
2020+ sha256 = "0n3y4qxsv1cyvyap95h3rj4bj1sinyfgsajygm7s8di3j5aabqr2";
2021 };
21222222- patches = [
2323- # ledger-autosync specifies an URL for its ofxparse
2424- # dependency. This patch removes the URL to only use the
2525- # `ofxparse` name. This works because nixpkgs' version of ofxparse
2626- # is more recent than the latest release.
2727- ./fix-ofxparse-dependency.patch
2323+ nativeBuildInputs = with python3Packages; [
2424+ poetry-core
2825 ];
29263027 propagatedBuildInputs = with python3Packages; [
···52495350 # Checks require ledger as a python package,
5451 # ledger does not support python3 while ledger-autosync requires it.
5555- checkInputs = with python3Packages; [ ledger hledger nose mock ];
5656- checkPhase = ''
5757- nosetests -a generic -a ledger -a hledger
5858- '';
5252+ checkInputs = with python3Packages; [ ledger hledger nose mock pytestCheckHook ];
5353+5454+ # Disable some non-passing tests:
5555+ # https://github.com/egh/ledger-autosync/issues/127
5656+ disabledTests = [
5757+ "test_payee_match"
5858+ "test_args_only"
5959+ ];
59606061 meta = with lib; {
6162 homepage = "https://github.com/egh/ledger-autosync";