Merge pull request #281299 from SuperSandro2000/yaspin-fix
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user