1{ lib
2, fetchPypi
3, buildPythonPackage
4, guessit
5, babelfish
6, enzyme
7, beautifulsoup4
8, requests
9, click
10, dogpile-cache
11, stevedore
12, chardet
13, pysrt
14, six
15, appdirs
16, rarfile
17, pytz
18, sympy
19, vcrpy
20, pytest
21, pytest-flakes
22, pytest-cov
23, pytest-runner
24}:
25
26buildPythonPackage rec {
27 pname = "subliminal";
28 version = "2.1.0";
29
30 src = fetchPypi {
31 inherit pname version;
32 sha256 = "12v2clnbic8320fjsvkg3xfxfa7x8inhjk61z00pzwx46g3rqhy6";
33 };
34
35 propagatedBuildInputs = [
36 guessit babelfish enzyme beautifulsoup4 requests
37 click dogpile-cache stevedore chardet pysrt six
38 appdirs rarfile pytz
39 ];
40
41 checkInputs = [
42 sympy vcrpy pytest pytest-flakes
43 pytest-cov pytest-runner
44 ];
45
46 # https://github.com/Diaoul/subliminal/pull/963
47 doCheck = false;
48 pythonImportsCheck = [ "subliminal" ];
49
50 meta = with lib; {
51 homepage = "https://github.com/Diaoul/subliminal";
52 description = "Python library to search and download subtitles";
53 license = licenses.mit;
54 };
55}