1{ lib, buildPythonPackage, fetchPypi, requests }:
2
3buildPythonPackage rec {
4 pname = "youtube-search";
5 version = "2.1.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1541120273996fa433698b2e57b73296dfb8e90536211f29ea997dcf161b66fe";
10 };
11
12 propagatedBuildInputs = [ requests ];
13
14 # tests require network connection
15 doCheck = false;
16
17 pythonImportsCheck = [ "youtube_search" ];
18
19 meta = with lib; {
20 description = "Tool for searching for youtube videos to avoid using their heavily rate-limited API";
21 homepage = "https://github.com/joetats/youtube_search";
22 license = licenses.mit;
23 maintainers = with maintainers; [ j0hax ];
24 };
25}