Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 827 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "pytube"; 10 version = "12.1.2"; 11 12 disabled = pythonOlder "3.6"; 13 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "pytube"; 18 repo = "pytube"; 19 rev = "v${version}"; 20 hash = "sha256-Y4mriCwFvwAZ3e8kHKo9/S2vReb4q+b8KTHxtQo8SEw="; 21 }; 22 23 nativeCheckInputs = [ 24 pytestCheckHook 25 ]; 26 27 disabledTestPaths = [ 28 "tests/test_extract.py" 29 "tests/test_query.py" 30 "tests/test_streams.py" 31 "tests/test_main.py" 32 ]; 33 34 pythonImportsCheck = [ "pytube" ]; 35 36 meta = with lib; { 37 description = "Python 3 library for downloading YouTube Videos"; 38 homepage = "https://github.com/nficano/pytube"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ dotlambda ]; 41 }; 42}