about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pysrt/default.nix
blob: 49b93eabde7861ad1a1e2571bc8856d847606439 (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
{ 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";
  };
}