2021-07-14 22:03:04 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, requests }:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "youtube-search";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.1.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-veu7PUPAbTz3B7tRYMGptIMbmmaGLCdL6azv0kCEd08=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
# tests require network connection
|
2021-06-28 23:13:55 +00:00
|
|
|
doCheck = false;
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
pythonImportsCheck = [ "youtube_search" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for searching for youtube videos to avoid using their heavily rate-limited API";
|
|
|
|
homepage = "https://github.com/joetats/youtube_search";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ j0hax ];
|
|
|
|
};
|
|
|
|
}
|