1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, chardet 5, nose 6}: 7 8buildPythonPackage rec { 9 pname = "pysrt"; 10 version = "1.1.2"; 11 12 src = fetchFromGitHub { 13 owner = "byroot"; 14 repo = "pysrt"; 15 rev = "v${version}"; 16 sha256 = "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg"; 17 }; 18 19 nativeCheckInputs = [ nose ]; 20 checkPhase = '' 21 nosetests -v 22 ''; 23 24 propagatedBuildInputs = [ chardet ]; 25 26 meta = with lib; { 27 homepage = "https://github.com/byroot/pysrt"; 28 license = licenses.gpl3; 29 description = "Python library used to edit or create SubRip files"; 30 }; 31}