1{ stdenv 2, buildPythonApplication 3, fetchFromGitHub 4, chardet 5, nose 6}: 7 8buildPythonApplication rec { 9 pname = "pysrt"; 10 version = "1.1.1"; 11 12 src = fetchFromGitHub { 13 owner = "byroot"; 14 repo = "pysrt"; 15 rev = "v${version}"; 16 sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn"; 17 }; 18 19 buildInputs = [ nose ]; 20 checkPhase = '' 21 nosetests -v 22 ''; 23 24 propagatedBuildInputs = [ chardet ]; 25 26 meta = with stdenv.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}