2017-05-18 02:16:40 -07:00
|
|
|
{ stdenv
|
2019-03-15 08:54:52 -07:00
|
|
|
, buildPythonPackage
|
2017-05-21 01:21:14 -07:00
|
|
|
, fetchFromGitHub
|
2017-05-18 02:16:40 -07:00
|
|
|
, chardet
|
2017-05-21 01:21:14 -07:00
|
|
|
, nose
|
2017-05-18 02:16:40 -07:00
|
|
|
}:
|
|
|
|
|
2019-03-15 08:54:52 -07:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 02:25:35 -07:00
|
|
|
pname = "pysrt";
|
2020-01-27 19:01:28 -08:00
|
|
|
version = "1.1.2";
|
2017-05-18 02:16:40 -07:00
|
|
|
|
2017-05-21 01:21:14 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "byroot";
|
|
|
|
repo = "pysrt";
|
|
|
|
rev = "v${version}";
|
2020-01-27 19:01:28 -08:00
|
|
|
sha256 = "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg";
|
2017-05-18 02:16:40 -07:00
|
|
|
};
|
|
|
|
|
2019-03-15 08:54:52 -07:00
|
|
|
checkInputs = [ nose ];
|
2017-05-21 01:21:14 -07:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v
|
|
|
|
'';
|
|
|
|
|
2017-05-18 02:16:40 -07:00
|
|
|
propagatedBuildInputs = [ chardet ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/byroot/pysrt";
|
2017-05-18 02:16:40 -07:00
|
|
|
license = licenses.gpl3;
|
|
|
|
description = "Python library used to edit or create SubRip files";
|
|
|
|
};
|
|
|
|
}
|