From 4c77cd417035e563a6ecfb7bad0c51d5c9fef49a Mon Sep 17 00:00:00 2001 From: Lin Xianyi Date: Wed, 27 Aug 2025 11:25:52 +0800 Subject: [PATCH] python3Packages.subliminal: fix build --- .../python-modules/subliminal/default.nix | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/subliminal/default.nix b/pkgs/development/python-modules/subliminal/default.nix index 43fa45173a13..d78808a666d3 100644 --- a/pkgs/development/python-modules/subliminal/default.nix +++ b/pkgs/development/python-modules/subliminal/default.nix @@ -4,23 +4,33 @@ fetchFromGitHub, pythonOlder, + # build-system + hatchling, + hatch-vcs, + + # dependencies babelfish, beautifulsoup4, chardet, click, click-option-group, + defusedxml, dogpile-cache, enzyme, guessit, + knowit, srt, pysubs2, rarfile, requests, platformdirs, - setuptools, stevedore, tomli, + tomlkit, + # nativeCheckInputs + colorama, + pypandoc, pytestCheckHook, pytest-cov-stub, pytest-xdist, @@ -43,7 +53,10 @@ buildPythonPackage rec { hash = "sha256-eAXzD6diep28wCZjWLOZpOX1bnakEldhs2LX5CPu5OI="; }; - build-system = [ setuptools ]; + build-system = [ + hatchling + hatch-vcs + ]; propagatedBuildInputs = [ babelfish @@ -51,9 +64,11 @@ buildPythonPackage rec { chardet click click-option-group + defusedxml dogpile-cache enzyme guessit + knowit srt pysubs2 rarfile @@ -61,9 +76,12 @@ buildPythonPackage rec { platformdirs stevedore tomli + tomlkit ]; nativeCheckInputs = [ + colorama + pypandoc pytestCheckHook pytest-cov-stub pytest-xdist @@ -76,6 +94,10 @@ buildPythonPackage rec { disabledTests = [ # Tests require network access + "integration" + "test_cli_cache" + "test_cli_download" + "test_is_supported_archive" "test_refine" "test_scan" "test_hash"