summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-05-21 09:22:46 +0100
committerGitHub <noreply@github.com>2017-05-21 09:22:46 +0100
commitd81683d0a4619aea6a48bd985275bdc4c6bfd159 (patch)
treeacb574bea339e17a60a1b978808e511117fafecc /pkgs/development/python-modules
parentf2795086489711ee31de7e52552679741cf75872 (diff)
parent219daab8e72656ae345bd108a36441a0027fa4dc (diff)
downloadnixpkgs-d81683d0a4619aea6a48bd985275bdc4c6bfd159.tar
nixpkgs-d81683d0a4619aea6a48bd985275bdc4c6bfd159.tar.gz
nixpkgs-d81683d0a4619aea6a48bd985275bdc4c6bfd159.tar.bz2
nixpkgs-d81683d0a4619aea6a48bd985275bdc4c6bfd159.tar.lz
nixpkgs-d81683d0a4619aea6a48bd985275bdc4c6bfd159.tar.xz
nixpkgs-d81683d0a4619aea6a48bd985275bdc4c6bfd159.tar.zst
nixpkgs-d81683d0a4619aea6a48bd985275bdc4c6bfd159.zip
Merge pull request #25884 from unaizalakain/init-pysrt
pysrt: init at 1.1.1
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pysrt/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pysrt/default.nix b/pkgs/development/python-modules/pysrt/default.nix
new file mode 100644
index 00000000000..076838425a4
--- /dev/null
+++ b/pkgs/development/python-modules/pysrt/default.nix
@@ -0,0 +1,31 @@
+{ stdenv
+, buildPythonApplication
+, fetchFromGitHub
+, chardet
+, nose
+}:
+
+buildPythonApplication rec {
+  name = "pysrt-${version}";
+  version = "1.1.1";
+
+  src = fetchFromGitHub {
+    owner = "byroot";
+    repo = "pysrt";
+    rev = "v${version}";
+    sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn";
+  };
+
+  buildInputs = [ 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";
+  };
+}