about summary refs log tree commit diff
path: root/pkgs/development/python-modules/youtube-search-python/default.nix
blob: 9383d4cb0598800f4e1ff995a733647435d5cab3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, httpx
}:

buildPythonPackage rec {
  pname = "youtube-search-python";
  version = "1.6.5";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-1B7rppa+s/oE8w91Ca7ogjkNHu5pFSnNmDyUopCWEY8=";
  };

  propagatedBuildInputs = [
    httpx
  ];

  pythonImportsCheck = [
    "youtubesearchpython"
  ];

  # Project has no tests
  doCheck = false;

  meta = with lib; {
    description = "Search for YouTube videos, channels & playlists & get video information using link without YouTube Data API";
    homepage = "https://github.com/alexmercerind/youtube-search-python";
    license = licenses.mit;
    maintainers = with maintainers; [ marsam ];
  };
}