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-04-27 09:35:20 +00:00
|
|
|
version = "1.6.5";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-1B7rppa+s/oE8w91Ca7ogjkNHu5pFSnNmDyUopCWEY8=";
|
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
|
|
|
};
|
|
|
|
}
|