2017-05-18 09:16:40 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonApplication
|
2017-05-21 08:21:14 +00:00
|
|
|
, fetchFromGitHub
|
2017-05-18 09:16:40 +00:00
|
|
|
, chardet
|
2017-05-21 08:21:14 +00:00
|
|
|
, nose
|
2017-05-18 09:16:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2017-05-27 09:25:35 +00:00
|
|
|
pname = "pysrt";
|
2017-05-18 09:16:40 +00:00
|
|
|
version = "1.1.1";
|
|
|
|
|
2017-05-21 08:21:14 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "byroot";
|
|
|
|
repo = "pysrt";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn";
|
2017-05-18 09:16:40 +00:00
|
|
|
};
|
|
|
|
|
2017-05-21 08:21:14 +00:00
|
|
|
buildInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v
|
|
|
|
'';
|
|
|
|
|
2017-05-18 09:16:40 +00:00
|
|
|
propagatedBuildInputs = [ chardet ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/byroot/pysrt;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
description = "Python library used to edit or create SubRip files";
|
|
|
|
};
|
|
|
|
}
|