todoman: 4.1.0 -> 4.3.1

This commit is contained in:
Anton Mosich 2023-08-05 11:50:24 +02:00
parent b6c5112152
commit 742b7e4ade

View file

@ -9,14 +9,14 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "todoman"; pname = "todoman";
version = "4.1.0"; version = "4.3.1";
format = "setuptools"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pimutils"; owner = "pimutils";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-MItFZ+4Q7UKeIWHl8KFiWOLNgFcfb0h1YWjPd+g48Wg="; hash = "sha256-pa1zzu0ITJObzhSmohjgiGTCoautXrY+SQQ3hxEtQcE=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -48,15 +48,11 @@ python3.pkgs.buildPythonApplication rec {
hypothesis hypothesis
pytestCheckHook pytestCheckHook
glibcLocales glibcLocales
pytest-cov
]; ];
LC_ALL = "en_US.UTF-8"; LC_ALL = "en_US.UTF-8";
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=todoman --cov-report=term-missing" ""
'';
postInstall = '' postInstall = ''
installShellCompletion --bash contrib/completion/bash/_todo installShellCompletion --bash contrib/completion/bash/_todo
substituteInPlace contrib/completion/zsh/_todo --replace "jq " "${jq}/bin/jq " 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 # Testing of the CLI part and output
"test_color_due_dates" "test_color_due_dates"
"test_color_flag" "test_color_flag"
"test_datetime_serialization" # Will be fixed in versions after 4.1.0
"test_default_command" "test_default_command"
"test_main" "test_main"
"test_missing_cache_dir" "test_missing_cache_dir"