about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pysrt/default.nix
blob: 882aed18c591b9e0b99bd70040cad9f47cd196a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv
, buildPythonApplication
, fetchFromGitHub
, chardet
, nose
}:

buildPythonApplication rec {
  pname = "pysrt";
  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";
  };
}