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