1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "pytube";
10 version = "11.0.1";
11
12 disabled = pythonOlder "3.6";
13
14 src = fetchFromGitHub {
15 owner = "pytube";
16 repo = "pytube";
17 rev = "v${version}";
18 sha256 = "04s4hganb6x0dlfyyg9gjah5z0vxd7bxzqwgvd28hqnf0iwc2byb";
19 };
20
21 checkInputs = [
22 pytestCheckHook
23 ];
24
25 pythonImportsCheck = [ "pytube" ];
26
27 meta = with lib; {
28 description = "Python 3 library for downloading YouTube Videos";
29 homepage = "https://github.com/nficano/pytube";
30 license = licenses.mit;
31 maintainers = with maintainers; [ dotlambda ];
32 };
33}