diff --git a/pkgs/development/python-modules/youtube-search-python/default.nix b/pkgs/development/python-modules/youtube-search-python/default.nix new file mode 100644 index 000000000000..818baf6b36f9 --- /dev/null +++ b/pkgs/development/python-modules/youtube-search-python/default.nix @@ -0,0 +1,27 @@ +{ lib, buildPythonPackage, pythonOlder, fetchPypi, httpx }: + +buildPythonPackage rec { + pname = "youtube-search-python"; + version = "1.4.7"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "7f93d9ecfd9b965dc93782d8174b1c1888f8900e2a303254037ba34e1d0ebed4"; + }; + + 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 v3"; + homepage = "https://github.com/alexmercerind/youtube-search-python"; + license = licenses.mit; + maintainers = [ maintainers.marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2ef3b52af0a4..19ca4df0d28d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9610,6 +9610,8 @@ in { youtube-search = callPackage ../development/python-modules/youtube-search { }; + youtube-search-python = callPackage ../development/python-modules/youtube-search-python { }; + youtube-transcript-api = callPackage ../development/python-modules/youtube-transcript-api { }; yowsup = callPackage ../development/python-modules/yowsup { };