1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, requests
6}:
7
8buildPythonPackage rec {
9 pname = "youtube-search";
10 version = "2.1.2";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-V0mm2Adv2mVVfJE2fw+rCTYpDs3qRXyDHJ8/BZGKOqI=";
18 };
19
20 propagatedBuildInputs = [
21 requests
22 ];
23
24 # Tests require network connection
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "youtube_search"
29 ];
30
31 meta = with lib; {
32 description = "Tool for searching for youtube videos to avoid using their heavily rate-limited API";
33 homepage = "https://github.com/joetats/youtube_search";
34 license = licenses.mit;
35 maintainers = with maintainers; [ j0hax ];
36 };
37}