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