diff --git a/pkgs/development/python-modules/blessed/default.nix b/pkgs/development/python-modules/blessed/default.nix index 98e27dccac5b..659f3523d5b3 100644 --- a/pkgs/development/python-modules/blessed/default.nix +++ b/pkgs/development/python-modules/blessed/default.nix @@ -1,41 +1,46 @@ { lib, buildPythonPackage, - fetchPypi, - six, + fetchFromGitHub, + flit-core, wcwidth, - pytest, + six, + pytestCheckHook, mock, glibcLocales, }: -buildPythonPackage rec { +buildPythonPackage { pname = "blessed"; - version = "1.21.0"; - format = "setuptools"; + # We need https://github.com/jquast/blessed/pull/311 to fix 3.13 + version = "1.25-unstable-2025-12-05"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-7Oi7xHWKuRdkUvTjpxnXAIjrVzl5jNVYLJ4F8qKDN+w="; + src = fetchFromGitHub { + owner = "jquast"; + repo = "blessed"; + rev = "cee680ff7fb3ad31f42ae98582ba74629f1fd6b0"; + hash = "sha256-4K1W0LXJKkb2wKE6D+IkX3oI5KxkpKbO661W/VTHgts="; }; + build-system = [ flit-core ]; + + dependencies = [ + wcwidth + six + ]; + nativeCheckInputs = [ - pytest + pytestCheckHook mock glibcLocales ]; # Default tox.ini parameters not needed - checkPhase = '' + preCheck = '' rm tox.ini - pytest ''; - propagatedBuildInputs = [ - wcwidth - six - ]; - meta = { homepage = "https://github.com/jquast/blessed"; description = "Thin, practical wrapper around terminal capabilities in Python";