emacsPackages.treemacs: replace python3 program (#364623)
[NixPkgs.git] / pkgs / development / python-modules / subliminal / default.nix
blobbf06b126c6688d5719c0ee227b8a5912e3209cc8
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
7   babelfish,
8   beautifulsoup4,
9   chardet,
10   click,
11   click-option-group,
12   dogpile-cache,
13   enzyme,
14   guessit,
15   srt,
16   pysubs2,
17   rarfile,
18   requests,
19   platformdirs,
20   stevedore,
21   tomli,
23   pytestCheckHook,
24   pytest-cov-stub,
25   pytest-xdist,
26   mypy,
27   sympy,
28   vcrpy,
31 buildPythonPackage rec {
32   pname = "subliminal";
33   version = "2.2.1";
34   pyproject = true;
36   disabled = pythonOlder "3.8";
38   src = fetchFromGitHub {
39     owner = "Diaoul";
40     repo = "subliminal";
41     rev = "refs/tags/${version}";
42     hash = "sha256-g7gg2qdLKl7bg/nNXRWN9wZaNShOOc38sVASZrIycMU=";
43   };
45   propagatedBuildInputs = [
46     babelfish
47     beautifulsoup4
48     chardet
49     click
50     click-option-group
51     dogpile-cache
52     enzyme
53     guessit
54     srt
55     pysubs2
56     rarfile
57     requests
58     platformdirs
59     stevedore
60     tomli
61   ];
63   nativeCheckInputs = [
64     pytestCheckHook
65     pytest-cov-stub
66     pytest-xdist
67     mypy
68     sympy
69     vcrpy
70   ];
72   pythonImportsCheck = [ "subliminal" ];
74   disabledTests = [
75     # Tests require network access
76     "test_refine"
77     "test_scan"
78     "test_hash"
79   ];
81   meta = {
82     description = "Python library to search and download subtitles";
83     homepage = "https://github.com/Diaoul/subliminal";
84     changelog = "https://github.com/Diaoul/subliminal/blob/${version}/HISTORY.rst";
85     license = lib.licenses.mit;
86     maintainers = with lib.maintainers; [ doronbehar ];
87   };