From cead2ccdc6a780605d571894890efd09d706820d Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 8 Aug 2024 15:50:27 +0300 Subject: [PATCH] python31{1,2}Packages.subliminal: 2.1.0 -> 2.2.1; unbreak --- .../python-modules/subliminal/default.nix | 50 ++++++++----------- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/pkgs/development/python-modules/subliminal/default.nix b/pkgs/development/python-modules/subliminal/default.nix index 60d1dbd24899..23347af0ff45 100644 --- a/pkgs/development/python-modules/subliminal/default.nix +++ b/pkgs/development/python-modules/subliminal/default.nix @@ -4,64 +4,67 @@ fetchFromGitHub, pythonOlder, - appdirs, babelfish, beautifulsoup4, chardet, click, + click-option-group, dogpile-cache, enzyme, guessit, - pysrt, - pytz, + srt, + pysubs2, rarfile, requests, - six, + platformdirs, stevedore, + tomli, pytestCheckHook, + pytest-cov, + pytest-xdist, + mypy, sympy, vcrpy, }: buildPythonPackage rec { pname = "subliminal"; - version = "2.1.0"; - format = "setuptools"; + version = "2.2.1"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Diaoul"; repo = "subliminal"; rev = "refs/tags/${version}"; - hash = "sha256-P4gVxKKCGKS3MC4F3yTAaOSv36TtdoYfrf61tBHg8VY="; + hash = "sha256-g7gg2qdLKl7bg/nNXRWN9wZaNShOOc38sVASZrIycMU="; }; - postPatch = '' - substituteInPlace pytest.ini \ - --replace " --pep8 --flakes" "" - ''; - propagatedBuildInputs = [ - appdirs babelfish beautifulsoup4 chardet click + click-option-group dogpile-cache enzyme guessit - pysrt - pytz + srt + pysubs2 rarfile requests - six + platformdirs stevedore + tomli ]; nativeCheckInputs = [ pytestCheckHook + pytest-cov + pytest-xdist + mypy sympy vcrpy ]; @@ -70,20 +73,9 @@ buildPythonPackage rec { disabledTests = [ # Tests require network access - "test_refine_video_metadata" + "test_refine" "test_scan" "test_hash" - "test_provider_pool_list_subtitles" - "test_async_provider_pool_list_subtitles" - "test_list_subtitles" - "test_download_bad_subtitle" - # Not implemented - "test_save_subtitles" - ]; - - disabledTestPaths = [ - # AttributeError: module 'rarfile' has no attribute 'custom_check' - "tests/test_legendastv.py" ]; meta = {