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