ledger-autosync: unstable-2021-04-01 -> 1.0.3

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

+14 -26
+14 -13
pkgs/applications/office/ledger-autosync/default.nix
··· 9 10 python3Packages.buildPythonApplication rec { 11 pname = "ledger-autosync"; 12 - version = "unstable-2021-04-01"; 13 14 # no tests included in PyPI tarball 15 src = fetchFromGitHub { 16 owner = "egh"; 17 repo = "ledger-autosync"; 18 - rev = "0b674c57c833f75b1a36d8caf78e1567c8e2180c"; 19 - sha256 = "0q404gr85caib5hg83cnmgx4684l72w9slxyxrwsiwhlf7gm443q"; 20 }; 21 22 - patches = [ 23 - # ledger-autosync specifies an URL for its ofxparse 24 - # dependency. This patch removes the URL to only use the 25 - # `ofxparse` name. This works because nixpkgs' version of ofxparse 26 - # is more recent than the latest release. 27 - ./fix-ofxparse-dependency.patch 28 ]; 29 30 propagatedBuildInputs = with python3Packages; [ ··· 52 53 # Checks require ledger as a python package, 54 # ledger does not support python3 while ledger-autosync requires it. 55 - checkInputs = with python3Packages; [ ledger hledger nose mock ]; 56 - checkPhase = '' 57 - nosetests -a generic -a ledger -a hledger 58 - ''; 59 60 meta = with lib; { 61 homepage = "https://github.com/egh/ledger-autosync";
··· 9 10 python3Packages.buildPythonApplication rec { 11 pname = "ledger-autosync"; 12 + version = "1.0.3"; 13 + format = "pyproject"; 14 15 # no tests included in PyPI tarball 16 src = fetchFromGitHub { 17 owner = "egh"; 18 repo = "ledger-autosync"; 19 + rev = "v${version}"; 20 + sha256 = "0n3y4qxsv1cyvyap95h3rj4bj1sinyfgsajygm7s8di3j5aabqr2"; 21 }; 22 23 + nativeBuildInputs = with python3Packages; [ 24 + poetry-core 25 ]; 26 27 propagatedBuildInputs = with python3Packages; [ ··· 49 50 # Checks require ledger as a python package, 51 # ledger does not support python3 while ledger-autosync requires it. 52 + checkInputs = with python3Packages; [ ledger hledger nose mock pytestCheckHook ]; 53 + 54 + # Disable some non-passing tests: 55 + # https://github.com/egh/ledger-autosync/issues/127 56 + disabledTests = [ 57 + "test_payee_match" 58 + "test_args_only" 59 + ]; 60 61 meta = with lib; { 62 homepage = "https://github.com/egh/ledger-autosync";
-13
pkgs/applications/office/ledger-autosync/fix-ofxparse-dependency.patch
··· 1 - diff --git a/setup.py b/setup.py 2 - index eda6db5..ed6b90b 100644 3 - --- a/setup.py 4 - +++ b/setup.py 5 - @@ -38,7 +38,7 @@ setup( 6 - install_requires=[ 7 - 'setuptools>=26', 8 - 'ofxclient', 9 - - "ofxparse @ https://github.com/jseutter/ofxparse/tarball/3236cfd96434feb6bc79a8b66f3400f18e2ad3c4" 10 - + 'ofxparse' 11 - ], 12 - 13 - extras_require={
···