depot/third_party/nixpkgs/pkgs/development/python-modules/pysrt/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

31 lines
587 B
Nix

{ lib
, 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 lib; {
homepage = "https://github.com/byroot/pysrt";
license = licenses.gpl3;
description = "Python library used to edit or create SubRip files";
};
}