{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, setuptools, pytestCheckHook, }: buildPythonPackage rec { pname = "pytubefix"; version = "9.4.1"; pyproject = true; src = fetchFromGitHub { owner = "JuanBindez"; repo = "pytubefix"; tag = "v${version}"; hash = "sha256-aw17XiWdr8cDIL8o4Dc91YLi3t4B8r5VAhBgZtCm3x8="; }; build-system = [ setuptools ]; dependencies = [ aiohttp ]; nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Tests require network access "tests/test_captions.py" "tests/test_cli.py" "tests/test_exceptions.py" "tests/test_extract.py" "tests/test_main.py" "tests/test_query.py" "tests/test_streams.py" ]; disabledTests = [ "test_playlist_failed_pagination" "test_playlist_pagination" "test_create_mock_html_json" ]; pythonImportsCheck = [ "pytubefix" ]; meta = { description = "Pytube fork with additional features and fixes"; homepage = "https://github.com/JuanBindez/pytubefix"; changelog = "https://github.com/JuanBindez/pytubefix/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ youhaveme9 ]; }; }