diff --git a/pkgs/by-name/yt/ytcc/package.nix b/pkgs/by-name/yt/ytcc/package.nix index 4fb2f6db9399..9831cd461c77 100644 --- a/pkgs/by-name/yt/ytcc/package.nix +++ b/pkgs/by-name/yt/ytcc/package.nix @@ -4,38 +4,43 @@ fetchFromGitHub, gettext, installShellFiles, + versionCheckHook, }: python3Packages.buildPythonApplication rec { pname = "ytcc"; - version = "2.6.1"; + version = "2.7.2"; pyproject = true; src = fetchFromGitHub { owner = "woefe"; repo = "ytcc"; - rev = "v${version}"; - hash = "sha256-pC2uoog+nev/Xa6UbXX4vX00VQQLHtZzbVkxrxO/Pg8="; + tag = "v${version}"; + hash = "sha256-PNSkIp6CJvgirO3k2lB0nOVEC1+znhn3/OyRIJ1EANI="; }; - nativeBuildInputs = - [ - gettext - installShellFiles - ] - ++ (with python3Packages; [ - setuptools - ]); + build-system = with python3Packages; [ hatchling ]; - propagatedBuildInputs = with python3Packages; [ + nativeBuildInputs = [ + gettext + installShellFiles + ]; + + dependencies = with python3Packages; [ yt-dlp click wcwidth + defusedxml ]; - nativeCheckInputs = with python3Packages; [ - pytestCheckHook - ]; + nativeCheckInputs = + with python3Packages; + [ + pytestCheckHook + ] + ++ [ versionCheckHook ]; + + versionCheckProgramArg = "--version"; # Disable tests that touch network or shell out to commands disabledTests = [ @@ -49,6 +54,7 @@ python3Packages.buildPythonApplication rec { "test_import_duplicate" "test_update" "test_download" + "test_comma_list_error" ]; postInstall = '' @@ -63,6 +69,7 @@ python3Packages.buildPythonApplication rec { description = "Command Line tool to keep track of your favourite YouTube channels without signing up for a Google account"; homepage = "https://github.com/woefe/ytcc"; license = lib.licenses.gpl3Plus; + mainProgram = "ytcc"; maintainers = with lib.maintainers; [ marius851000 ]; }; }