summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-10-17 18:12:09 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2022-10-17 18:12:09 +0200
commit359901c3abaf867c112b9640d543f81db0d2f890 (patch)
treeb00112a6a54a924b23df121b618d481bd440dc97
parent6e8749d00d42239af34185aebc715f583d8ff819 (diff)
downloadnixpkgs-359901c3abaf867c112b9640d543f81db0d2f890.tar
nixpkgs-359901c3abaf867c112b9640d543f81db0d2f890.tar.gz
nixpkgs-359901c3abaf867c112b9640d543f81db0d2f890.tar.bz2
nixpkgs-359901c3abaf867c112b9640d543f81db0d2f890.tar.lz
nixpkgs-359901c3abaf867c112b9640d543f81db0d2f890.tar.xz
nixpkgs-359901c3abaf867c112b9640d543f81db0d2f890.tar.zst
nixpkgs-359901c3abaf867c112b9640d543f81db0d2f890.zip
todoman: disable failing test
-rw-r--r--pkgs/applications/office/todoman/default.nix37
1 files changed, 20 insertions, 17 deletions
diff --git a/pkgs/applications/office/todoman/default.nix b/pkgs/applications/office/todoman/default.nix
index bc998f72a2d..68ec08e156e 100644
--- a/pkgs/applications/office/todoman/default.nix
+++ b/pkgs/applications/office/todoman/default.nix
@@ -1,28 +1,31 @@
-{ stdenv
-, lib
-, python3
+{ lib
+, stdenv
+, fetchFromGitHub
 , glibcLocales
 , installShellFiles
 , jq
+, python3
 }:
-let
-  inherit (python3.pkgs) buildPythonApplication fetchPypi setuptools-scm;
-in
-buildPythonApplication rec {
+
+python3.pkgs.buildPythonApplication rec {
   pname = "todoman";
   version = "4.1.0";
+  format = "setuptools";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "ce3caa481d923e91da9b492b46509810a754e2d3ef857f5d20bc5a8e362b50c8";
+  src = fetchFromGitHub {
+    owner = "pimutils";
+    repo = pname;
+    rev = "refs/tags/v${version}";
+    hash = "sha256-MItFZ+4Q7UKeIWHl8KFiWOLNgFcfb0h1YWjPd+g48Wg=";
   };
 
   SETUPTOOLS_SCM_PRETEND_VERSION = version;
 
   nativeBuildInputs = [
     installShellFiles
+  ] ++ (with python3.pkgs; [
     setuptools-scm
-  ];
+  ]);
 
   propagatedBuildInputs = with python3.pkgs; [
     atomicwrites
@@ -69,6 +72,8 @@ buildPythonApplication rec {
     "test_missing_cache_dir"
     "test_sorting_null_values"
     "test_xdg_existant"
+    # Tests are sensitive to performance
+    "test_sorting_fields"
   ] ++ lib.optionals stdenv.isDarwin [
     "test_sorting_fields"
   ];
@@ -81,17 +86,15 @@ buildPythonApplication rec {
     homepage = "https://github.com/pimutils/todoman";
     description = "Standards-based task manager based on iCalendar";
     longDescription = ''
-      Todoman is a simple, standards-based, cli todo (aka: task) manager. Todos
-      are stored into icalendar files, which means you can sync them via CalDAV
+      Todoman is a simple, standards-based, cli todo (aka task) manager. Todos
+      are stored into iCalendar files, which means you can sync them via CalDAV
       using, for example, vdirsyncer.
 
       Todos are read from individual ics files from the configured directory.
-      This matches the vdir specification.  There’s support for the most common TODO
+      This matches the vdir specification. There is support for the most common TODO
       features for now (summary, description, location, due date and priority) for
-      now.  Runs on any Unix-like OS. It’s been tested on GNU/Linux, BSD and macOS.
+      now.
       Unsupported fields may not be shown but are never deleted or altered.
-
-      Todoman is part of the pimutils project
     '';
     changelog = "https://github.com/pimutils/todoman/raw/v${version}/CHANGELOG.rst";
     license = licenses.isc;