2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, httpx
|
|
|
|
}:
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "youtube-search-python";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.6.3";
|
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-zAza1XMKLIMZFFS0v/4ATqh6j7aEB2Y+eliE/hNPORw=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
httpx
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"youtubesearchpython"
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
# Project has no tests
|
2021-09-18 10:52:07 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Search for YouTube videos, channels & playlists & get video information using link without YouTube Data API";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/alexmercerind/youtube-search-python";
|
|
|
|
license = licenses.mit;
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|