depot/third_party/nixpkgs/pkgs/development/python-modules/pysrt/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

34 lines
650 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
chardet,
nose,
}:
buildPythonPackage rec {
pname = "pysrt";
version = "1.1.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "byroot";
repo = "pysrt";
rev = "v${version}";
sha256 = "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg";
};
nativeCheckInputs = [ nose ];
checkPhase = ''
nosetests -v
'';
propagatedBuildInputs = [ chardet ];
meta = with lib; {
homepage = "https://github.com/byroot/pysrt";
license = licenses.gpl3;
description = "Python library used to edit or create SubRip files";
mainProgram = "srt";
};
}