Commit 925f6afe authored by emaryn's avatar emaryn
Browse files
parent f7cbcfd0
Loading
Loading
Loading
Loading
+22 −15
Original line number Diff line number Diff line
@@ -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 =
    [
  build-system = with python3Packages; [ hatchling ];

  nativeBuildInputs = [
    gettext
    installShellFiles
    ]
    ++ (with python3Packages; [
      setuptools
    ]);
  ];

  propagatedBuildInputs = with python3Packages; [
  dependencies = with python3Packages; [
    yt-dlp
    click
    wcwidth
    defusedxml
  ];

  nativeCheckInputs = with python3Packages; [
  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 ];
  };
}