summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnton Mosich <anton@mosich.at>2023-08-05 11:50:24 +0200
committerAnton Mosich <anton@mosich.at>2023-08-05 11:50:24 +0200
commit742b7e4ade3b918aa20f0025c9292862809bd40b (patch)
tree05310d12bb87347a0c4ca663e54778fd5cc2a6d3
parentb6c51121520fefb7e5696099ad59e5080b3f13d0 (diff)
downloadnixpkgs-742b7e4ade3b918aa20f0025c9292862809bd40b.tar
nixpkgs-742b7e4ade3b918aa20f0025c9292862809bd40b.tar.gz
nixpkgs-742b7e4ade3b918aa20f0025c9292862809bd40b.tar.bz2
nixpkgs-742b7e4ade3b918aa20f0025c9292862809bd40b.tar.lz
nixpkgs-742b7e4ade3b918aa20f0025c9292862809bd40b.tar.xz
nixpkgs-742b7e4ade3b918aa20f0025c9292862809bd40b.tar.zst
nixpkgs-742b7e4ade3b918aa20f0025c9292862809bd40b.zip
todoman: 4.1.0 -> 4.3.1
-rw-r--r--pkgs/applications/office/todoman/default.nix13
1 files changed, 4 insertions, 9 deletions
diff --git a/pkgs/applications/office/todoman/default.nix b/pkgs/applications/office/todoman/default.nix
index 7794116ecd4..2ea7fe7a2e1 100644
--- a/pkgs/applications/office/todoman/default.nix
+++ b/pkgs/applications/office/todoman/default.nix
@@ -9,14 +9,14 @@
 
 python3.pkgs.buildPythonApplication rec {
   pname = "todoman";
-  version = "4.1.0";
-  format = "setuptools";
+  version = "4.3.1";
+  format = "pyproject";
 
   src = fetchFromGitHub {
     owner = "pimutils";
     repo = pname;
     rev = "refs/tags/v${version}";
-    hash = "sha256-MItFZ+4Q7UKeIWHl8KFiWOLNgFcfb0h1YWjPd+g48Wg=";
+    hash = "sha256-pa1zzu0ITJObzhSmohjgiGTCoautXrY+SQQ3hxEtQcE=";
   };
 
   SETUPTOOLS_SCM_PRETEND_VERSION = version;
@@ -48,15 +48,11 @@ python3.pkgs.buildPythonApplication rec {
     hypothesis
     pytestCheckHook
     glibcLocales
+    pytest-cov
   ];
 
   LC_ALL = "en_US.UTF-8";
 
-  postPatch = ''
-    substituteInPlace setup.cfg \
-      --replace " --cov=todoman --cov-report=term-missing" ""
-  '';
-
   postInstall = ''
     installShellCompletion --bash contrib/completion/bash/_todo
     substituteInPlace contrib/completion/zsh/_todo --replace "jq " "${jq}/bin/jq "
@@ -67,7 +63,6 @@ python3.pkgs.buildPythonApplication rec {
     # Testing of the CLI part and output
     "test_color_due_dates"
     "test_color_flag"
-    "test_datetime_serialization"  # Will be fixed in versions after 4.1.0
     "test_default_command"
     "test_main"
     "test_missing_cache_dir"