Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 660 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "pytube"; 10 version = "10.8.2"; 11 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "pytube"; 16 repo = "pytube"; 17 rev = "v${version}"; 18 sha256 = "sha256-LY1aDFzF0vHwEa3pfAoxZ3KM1l39PDo6S6F3xtqqspU="; 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}