about summary refs log tree commit diff
path: root/pkgs/applications/office/todoman
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-10 01:01:04 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-11-10 01:01:04 +0100
commit12e3937ec95a77eaf4b0b788f6aa141b9ce061e3 (patch)
treeed4a1d3b088a5e6dae3371df8a8ee94a514e6ef1 /pkgs/applications/office/todoman
parent2de888a972be0747c29a23de73a092fd0e558677 (diff)
downloadnixlib-12e3937ec95a77eaf4b0b788f6aa141b9ce061e3.tar
nixlib-12e3937ec95a77eaf4b0b788f6aa141b9ce061e3.tar.gz
nixlib-12e3937ec95a77eaf4b0b788f6aa141b9ce061e3.tar.bz2
nixlib-12e3937ec95a77eaf4b0b788f6aa141b9ce061e3.tar.lz
nixlib-12e3937ec95a77eaf4b0b788f6aa141b9ce061e3.tar.xz
nixlib-12e3937ec95a77eaf4b0b788f6aa141b9ce061e3.tar.zst
nixlib-12e3937ec95a77eaf4b0b788f6aa141b9ce061e3.zip
todoman: disable failing tests
Diffstat (limited to 'pkgs/applications/office/todoman')
-rw-r--r--pkgs/applications/office/todoman/default.nix30
1 files changed, 21 insertions, 9 deletions
diff --git a/pkgs/applications/office/todoman/default.nix b/pkgs/applications/office/todoman/default.nix
index e01391519e49..8c7b4ee43842 100644
--- a/pkgs/applications/office/todoman/default.nix
+++ b/pkgs/applications/office/todoman/default.nix
@@ -4,7 +4,6 @@
 , installShellFiles
 , jq
 }:
-
 let
   inherit (python3.pkgs) buildPythonApplication fetchPypi setuptools-scm;
 in
@@ -23,6 +22,7 @@ buildPythonApplication rec {
     installShellFiles
     setuptools-scm
   ];
+
   propagatedBuildInputs = with python3.pkgs; [
     atomicwrites
     click
@@ -42,25 +42,37 @@ buildPythonApplication rec {
     flake8-import-order
     freezegun
     hypothesis
-    pytest
-    pytest-runner
-    pytest-cov
+    pytestCheckHook
     glibcLocales
   ];
 
   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 "
     installShellCompletion --zsh contrib/completion/zsh/_todo
   '';
 
-  preCheck = ''
-    # Remove one failing test that only checks whether the command line works
-    rm tests/test_main.py
-    rm tests/test_cli.py
-  '';
+  disabledTests = [
+    # Testing of the CLI part and output
+    "test_color_due_dates"
+    "test_color_flag"
+    "test_default_command"
+    "test_main"
+    "test_missing_cache_dir"
+    "test_sorting_null_values"
+    "test_xdg_existant"
+  ];
+
+  pythonImportsCheck = [
+    "todoman"
+  ];
 
   meta = with lib; {
     homepage = "https://github.com/pimutils/todoman";