diff --git a/pkgs/development/python-modules/pysrt/default.nix b/pkgs/development/python-modules/pysrt/default.nix new file mode 100644 index 00000000000..49b93eabde7 --- /dev/null +++ b/pkgs/development/python-modules/pysrt/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonApplication +, fetchurl +, chardet +}: + +buildPythonApplication rec { + name = "pysrt-${version}"; + version = "1.1.1"; + + src = fetchurl { + url = "mirror://pypi/p/pysrt/${name}.tar.gz"; + sha256 = "1anhfilhamdv15w9mmzwc5a8fsri00ghkmcws4r5mz298m110k7v"; + }; + + 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"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1516ccaa94f..9ecfd949256 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9148,6 +9148,8 @@ in { }; }; + pysrt = callPackage ../development/python-modules/pysrt { }; + pytools = buildPythonPackage rec { name = "pytools-${version}"; version = "2016.2.1";