959842a9c7
so that we can use the update script.
32 lines
635 B
Nix
32 lines
635 B
Nix
{ stdenv
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, chardet
|
|
, nose
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "pysrt";
|
|
name = "${pname}-${version}";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "byroot";
|
|
repo = "pysrt";
|
|
rev = "v${version}";
|
|
sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn";
|
|
};
|
|
|
|
buildInputs = [ nose ];
|
|
checkPhase = ''
|
|
nosetests -v
|
|
'';
|
|
|
|
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";
|
|
};
|
|
}
|