Merge pull request #231914 from figsoda/topydo

topydo: apply patch to fix test

authored by

Robert Scott and committed by
GitHub
77cd6091 26fb2783

+22 -10
+22 -10
pkgs/applications/misc/topydo/default.nix
··· 1 - { lib, python3Packages, fetchFromGitHub, glibcLocales }: 2 - 3 - with python3Packages; 1 + { lib, python3, fetchFromGitHub, fetchpatch, glibcLocales }: 4 2 5 - buildPythonApplication rec { 3 + python3.pkgs.buildPythonApplication rec { 6 4 pname = "topydo"; 7 5 version = "0.14"; 8 6 9 7 src = fetchFromGitHub { 10 - owner = "bram85"; 8 + owner = "topydo"; 11 9 repo = pname; 12 10 rev = version; 13 11 sha256 = "1lpfdai0pf90ffrzgmmkadbd86rb7250i3mglpkc82aj6prjm6yb"; 14 12 }; 15 13 16 - propagatedBuildInputs = [ 14 + patches = [ 15 + # fixes a failing test 16 + (fetchpatch { 17 + name = "update-a-test-reference-ics-file.patch"; 18 + url = "https://github.com/topydo/topydo/commit/9373bb4702b512b10f0357df3576c129901e3ac6.patch"; 19 + hash = "sha256-JpyQfryWSoJDdyzbrESWY+RmRbDw1myvTlsFK7+39iw="; 20 + }) 21 + ]; 22 + 23 + propagatedBuildInputs = with python3.pkgs; [ 17 24 arrow 18 - icalendar 19 25 glibcLocales 26 + icalendar 20 27 prompt-toolkit 21 28 urwid 22 29 watchdog 23 30 ]; 24 31 25 - nativeCheckInputs = [ unittestCheckHook mock freezegun pylint ]; 32 + nativeCheckInputs = with python3.pkgs; [ 33 + freezegun 34 + unittestCheckHook 35 + ]; 26 36 27 37 # Skip test that has been reported multiple times upstream without result: 28 38 # bram85/topydo#271, bram85/topydo#274. ··· 34 44 35 45 meta = with lib; { 36 46 description = "A cli todo application compatible with the todo.txt format"; 37 - homepage = "https://github.com/bram85/topydo"; 38 - license = licenses.gpl3; 47 + homepage = "https://github.com/topydo/topydo"; 48 + changelog = "https://github.com/topydo/topydo/blob/${src.rev}/CHANGES.md"; 49 + license = licenses.gpl3Plus; 50 + maintainers = with maintainers; [ ]; 39 51 }; 40 52 }