nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / yt / ytcc / package.nix
blob4fb2f6db939948752b15c6823b33c2f25c114159
2   lib,
3   python3Packages,
4   fetchFromGitHub,
5   gettext,
6   installShellFiles,
7 }:
9 python3Packages.buildPythonApplication rec {
10   pname = "ytcc";
11   version = "2.6.1";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "woefe";
16     repo = "ytcc";
17     rev = "v${version}";
18     hash = "sha256-pC2uoog+nev/Xa6UbXX4vX00VQQLHtZzbVkxrxO/Pg8=";
19   };
21   nativeBuildInputs =
22     [
23       gettext
24       installShellFiles
25     ]
26     ++ (with python3Packages; [
27       setuptools
28     ]);
30   propagatedBuildInputs = with python3Packages; [
31     yt-dlp
32     click
33     wcwidth
34   ];
36   nativeCheckInputs = with python3Packages; [
37     pytestCheckHook
38   ];
40   # Disable tests that touch network or shell out to commands
41   disabledTests = [
42     "get_channels"
43     "play_video"
44     "download_videos"
45     "update_all"
46     "add_channel_duplicate"
47     "test_subscribe"
48     "test_import"
49     "test_import_duplicate"
50     "test_update"
51     "test_download"
52   ];
54   postInstall = ''
55     installManPage doc/ytcc.1
56     installShellCompletion --cmd ytcc \
57       --bash scripts/completions/bash/ytcc.completion.sh \
58       --fish scripts/completions/fish/ytcc.fish \
59       --zsh scripts/completions/zsh/_ytcc
60   '';
62   meta = {
63     description = "Command Line tool to keep track of your favourite YouTube channels without signing up for a Google account";
64     homepage = "https://github.com/woefe/ytcc";
65     license = lib.licenses.gpl3Plus;
66     maintainers = with lib.maintainers; [ marius851000 ];
67   };