{ lib, buildPythonPackage, fetchFromGitHub, setuptools, beautifulsoup4, lxml, cssutils, nltk, pytest-lazy-fixture, pytestCheckHook, }: buildPythonPackage rec { pname = "pycaption"; version = "2.2.19"; pyproject = true; src = fetchFromGitHub { owner = "pbs"; repo = "pycaption"; tag = version; hash = "sha256-fDOE2hYOlQQs2OZ6r7wK6M66zMfHi7/0pgk9MfWb7zg="; }; build-system = [ setuptools ]; dependencies = [ beautifulsoup4 lxml cssutils ]; optional-dependencies = { transcript = [ nltk ]; }; nativeCheckInputs = [ pytest-lazy-fixture pytestCheckHook ]; meta = { changelog = "https://github.com/pbs/pycaption/blob/${src.tag}/docs/changelog.rst"; description = "Closed caption converter"; homepage = "https://github.com/pbs/pycaption"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ dotlambda ]; }; }