1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pytube";
11 version = "15.0.0";
12
13 disabled = pythonOlder "3.7";
14
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "pytube";
19 repo = "pytube";
20 rev = "v${version}";
21 hash = "sha256-Nvs/YlOjk/P5nd1kpUnCM2n6yiEaqZP830UQI0Ug1rk=";
22 };
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 disabledTests = [ "test_streaming" ];
27
28 disabledTestPaths = [
29 "tests/test_extract.py"
30 "tests/test_query.py"
31 "tests/test_streams.py"
32 "tests/test_main.py"
33 ];
34
35 pythonImportsCheck = [ "pytube" ];
36
37 meta = with lib; {
38 description = "Python 3 library for downloading YouTube Videos";
39 mainProgram = "pytube";
40 homepage = "https://github.com/nficano/pytube";
41 license = licenses.mit;
42 maintainers = with maintainers; [ dotlambda ];
43 };
44}