Merge pull request #281299 from SuperSandro2000/yaspin-fix

This commit is contained in:
Sandro
2024-02-27 15:10:26 +01:00
committed by GitHub
2 changed files with 7 additions and 7 deletions
@@ -30,9 +30,8 @@ buildPythonPackage rec {
];
meta = with lib; {
description = "Termcolor";
homepage = "https://pypi.python.org/pypi/termcolor";
description = "ANSI color formatting for output in terminal";
homepage = "https://github.com/termcolor/termcolor";
license = licenses.mit;
};
}
@@ -2,6 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-xdist
, pytestCheckHook
, pythonOlder
, termcolor
@@ -30,13 +31,13 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
pytest-xdist
pytestCheckHook
];
postPatch = ''
# https://github.com/pavdmyt/yaspin/pull/212
substituteInPlace pyproject.toml \
--replace 'termcolor-whl = "1.1.2"' 'termcolor = "*"'
# tests assert for \033 which gets turned off in termcolor when TERM dumb is used which is used by nix
preCheck = ''
export FORCE_COLOR=1
'';
pythonImportsCheck = [