todoman: 4.3.2 -> 4.4.0

A small version update which makes fetching the patch I removed
obsolete. I also included a small refactor.

+7 -16
+7 -16
pkgs/applications/office/todoman/default.nix
··· 5 5 , installShellFiles 6 6 , jq 7 7 , python3 8 - , fetchpatch 9 8 }: 10 9 11 10 python3.pkgs.buildPythonApplication rec { 12 11 pname = "todoman"; 13 - version = "4.3.2"; 12 + version = "4.4.0"; 14 13 format = "pyproject"; 15 14 16 15 src = fetchFromGitHub { 17 16 owner = "pimutils"; 18 17 repo = pname; 19 18 rev = "refs/tags/v${version}"; 20 - hash = "sha256-dxyI9ypZZBouTUF72wzvi7j+CeoQ9JNSiXrVeV7ForY="; 19 + hash = "sha256-5tQaNT6QVN9mxa9t6OvMux4ZGy4flUqszTAwet2QL0w="; 21 20 }; 22 21 23 - patches = [ 24 - (fetchpatch { 25 - name = "disable-broken-urwid-test.patch"; 26 - url = "https://github.com/pimutils/todoman/commit/7ff0d2e2e69e24df5d66fecc58f8cd0b4e5ced6d.patch"; 27 - hash = "sha256-MMNnnIthNqobexd8GaA6lYxzv5gr1l0e9YK+Ygeje2w="; 28 - }) 29 - ]; 30 - 31 22 SETUPTOOLS_SCM_PRETEND_VERSION = version; 32 23 33 24 nativeBuildInputs = [ ··· 64 55 65 56 postInstall = '' 66 57 installShellCompletion --bash contrib/completion/bash/_todo 67 - substituteInPlace contrib/completion/zsh/_todo --replace "jq " "${jq}/bin/jq " 58 + substituteInPlace contrib/completion/zsh/_todo --replace "jq " "${lib.getExe jq} " 68 59 installShellCompletion --zsh contrib/completion/zsh/_todo 69 60 ''; 70 61 ··· 85 76 "todoman" 86 77 ]; 87 78 88 - meta = with lib; { 79 + meta = { 89 80 homepage = "https://github.com/pimutils/todoman"; 90 81 description = "Standards-based task manager based on iCalendar"; 91 82 longDescription = '' ··· 99 90 now. 100 91 Unsupported fields may not be shown but are never deleted or altered. 101 92 ''; 102 - changelog = "https://github.com/pimutils/todoman/raw/v${version}/CHANGELOG.rst"; 103 - license = licenses.isc; 104 - maintainers = with maintainers; [ leenaars antonmosich ]; 93 + changelog = "https://todoman.readthedocs.io/en/stable/changelog.html#v${builtins.replaceStrings ["."] ["-"] version}"; 94 + license = lib.licenses.isc; 95 + maintainers = with lib.maintainers; [ leenaars antonmosich ]; 105 96 mainProgram = "todo"; 106 97 }; 107 98 }