about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-02-27 15:10:26 +0100
committerGitHub <noreply@github.com>2024-02-27 15:10:26 +0100
commitfeec658c3126f7fcafd9daa54e55ff5cff0b43a8 (patch)
treee841512373ed70cec53d46d9e8c21d65a17b08af /pkgs/development
parent74947659b53ad7a7e0806052a885d73c06227f2f (diff)
parentb55e709167ec244a4e771249a0db220a6fd660f2 (diff)
Merge pull request #281299 from SuperSandro2000/yaspin-fix
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/termcolor/default.nix5
-rw-r--r--pkgs/development/python-modules/yaspin/default.nix9
2 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/termcolor/default.nix b/pkgs/development/python-modules/termcolor/default.nix
index 9a0af4e558e23..474af852d39f0 100644
--- a/pkgs/development/python-modules/termcolor/default.nix
+++ b/pkgs/development/python-modules/termcolor/default.nix
@@ -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;
   };
-
 }
diff --git a/pkgs/development/python-modules/yaspin/default.nix b/pkgs/development/python-modules/yaspin/default.nix
index c90da30a746bc..0235c06ab1496 100644
--- a/pkgs/development/python-modules/yaspin/default.nix
+++ b/pkgs/development/python-modules/yaspin/default.nix
@@ -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 = [