mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
32 lines
597 B
Nix
32 lines
597 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, chardet
|
|
, nose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysrt";
|
|
version = "1.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "byroot";
|
|
repo = "pysrt";
|
|
rev = "v${version}";
|
|
sha256 = "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg";
|
|
};
|
|
|
|
checkInputs = [ 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";
|
|
};
|
|
}
|