1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, beautifulsoup4 6, lxml 7, cssutils 8, nltk 9, pytest-lazy-fixture 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "pycaption"; 15 version = "2.2.0"; 16 17 disabled = pythonOlder "3.6"; 18 19 format = "setuptools"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-W/sD/Nh2k1z7YvFVnQB9dGa1bXoCTb4QrPk/1mi4Hdk="; 24 }; 25 26 propagatedBuildInputs = [ 27 beautifulsoup4 28 lxml 29 cssutils 30 ]; 31 32 passthru.optional-dependencies = { 33 transcript = [ nltk ]; 34 }; 35 36 nativeCheckInputs = [ 37 pytest-lazy-fixture 38 pytestCheckHook 39 ]; 40 41 doCheck = false; 42 43 meta = with lib; { 44 changelog = "https://github.com/pbs/pycaption/blob/${version}/docs/changelog.rst"; 45 description = "Closed caption converter"; 46 homepage = "https://github.com/pbs/pycaption"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ dotlambda ]; 49 }; 50}