summary refs log tree commit diff
path: root/pkgs/development/python-modules/subliminal/default.nix
blob: 0da11909de9d7d83dad4669c0da6104fcfe4295d (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
32
33
34
35
36
37
38
39
40
41
{ stdenv
, fetchPypi
, buildPythonApplication
, guessit
, babelfish
, enzyme
, beautifulsoup4
, requests
, click
, dogpile_cache
, stevedore
, chardet
, pysrt
, six
, appdirs
, rarfile
, pytz
, futures
}:

buildPythonApplication rec {
  pname = "subliminal";
  version = "2.0.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1dzv5csjcwgz69aimarx2c6606ckm2gbn4x2mzydcqnyai7sayhl";
  };

  # Too many test dependencies
  doCheck = false;
  propagatedBuildInputs = [ guessit babelfish enzyme beautifulsoup4 requests
                            click dogpile_cache stevedore chardet pysrt six
                            appdirs rarfile pytz futures ];

  meta = with stdenv.lib; {
    homepage = https://github.com/Diaoul/subliminal;
    description = "Python library to search and download subtitles";
    license = licenses.mit;
  };
}