diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pysrt')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pysrt/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pysrt/default.nix b/nixpkgs/pkgs/development/python-modules/pysrt/default.nix new file mode 100644 index 00000000000..f383854d5b4 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pysrt/default.nix @@ -0,0 +1,31 @@ +{ 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"; + }; +} |