24 buildPythonPackage rec {
27 format = "setuptools";
29 disabled = pythonOlder "3.7";
31 src = fetchFromGitHub {
34 rev = "refs/tags/${version}";
35 hash = "sha256-P4gVxKKCGKS3MC4F3yTAaOSv36TtdoYfrf61tBHg8VY=";
39 substituteInPlace pytest.ini \
40 --replace " --pep8 --flakes" ""
43 propagatedBuildInputs = [
66 pythonImportsCheck = [
71 # Tests rewuire network access
72 "test_refine_video_metadata"
75 "test_provider_pool_list_subtitles"
76 "test_async_provider_pool_list_subtitles"
78 "test_download_bad_subtitle"
84 # AttributeError: module 'rarfile' has no attribute 'custom_check'
85 "tests/test_legendastv.py"
89 description = "Python library to search and download subtitles";
90 homepage = "https://github.com/Diaoul/subliminal";
91 changelog = "https://github.com/Diaoul/subliminal/blob/${version}/HISTORY.rst";
92 license = licenses.mit;
93 maintainers = with maintainers; [ doronbehar ];
94 # Too many tests fail ever since a certain python-updates merge, see:
95 # https://github.com/Diaoul/subliminal/issues/1062 . Disabling tests
96 # alltogether may produce a not completly failing executable, but that
97 # executable apparently isn't able to download subtitles at all.