Skip to content

Commit

Permalink
Merge pull request #264328 from antonmosich/todoman-update
Browse files Browse the repository at this point in the history
todoman: 4.3.2 -> 4.4.0
  • Loading branch information
marsam authored Oct 31, 2023
2 parents 71e65b3 + f68143e commit 04ba740
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions pkgs/applications/office/todoman/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,20 @@
, installShellFiles
, jq
, python3
, fetchpatch
}:

python3.pkgs.buildPythonApplication rec {
pname = "todoman";
version = "4.3.2";
version = "4.4.0";
format = "pyproject";

src = fetchFromGitHub {
owner = "pimutils";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dxyI9ypZZBouTUF72wzvi7j+CeoQ9JNSiXrVeV7ForY=";
hash = "sha256-5tQaNT6QVN9mxa9t6OvMux4ZGy4flUqszTAwet2QL0w=";
};

patches = [
(fetchpatch {
name = "disable-broken-urwid-test.patch";
url = "https://github.com/pimutils/todoman/commit/7ff0d2e2e69e24df5d66fecc58f8cd0b4e5ced6d.patch";
hash = "sha256-MMNnnIthNqobexd8GaA6lYxzv5gr1l0e9YK+Ygeje2w=";
})
];

SETUPTOOLS_SCM_PRETEND_VERSION = version;

nativeBuildInputs = [
Expand Down Expand Up @@ -64,7 +55,7 @@ python3.pkgs.buildPythonApplication rec {

postInstall = ''
installShellCompletion --bash contrib/completion/bash/_todo
substituteInPlace contrib/completion/zsh/_todo --replace "jq " "${jq}/bin/jq "
substituteInPlace contrib/completion/zsh/_todo --replace "jq " "${lib.getExe jq} "
installShellCompletion --zsh contrib/completion/zsh/_todo
'';

Expand All @@ -85,7 +76,7 @@ python3.pkgs.buildPythonApplication rec {
"todoman"
];

meta = with lib; {
meta = {
homepage = "https://github.com/pimutils/todoman";
description = "Standards-based task manager based on iCalendar";
longDescription = ''
Expand All @@ -99,9 +90,9 @@ python3.pkgs.buildPythonApplication rec {
now.
Unsupported fields may not be shown but are never deleted or altered.
'';
changelog = "https://github.com/pimutils/todoman/raw/v${version}/CHANGELOG.rst";
license = licenses.isc;
maintainers = with maintainers; [ leenaars antonmosich ];
changelog = "https://todoman.readthedocs.io/en/stable/changelog.html#v${builtins.replaceStrings ["."] ["-"] version}";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ leenaars antonmosich ];
mainProgram = "todo";
};
}

0 comments on commit 04ba740

Please sign in to comment.