From: Michael R. Crusoe <crusoe@debian.org>
Subject: Support Setuptools version 72+
Bug-Debian: https://bug.debian.org/1080224

Which removed the "tests_require" attribute
--- nose.orig/nose/commands.py
+++ nose/nose/commands.py
@@ -142,7 +142,8 @@
             if self.distribution.install_requires:
                 self.distribution.fetch_build_eggs(
                     self.distribution.install_requires)
-            if self.distribution.tests_require:
+            if hasattr(self.distribution, "tests_require") \
+                    and self.distribution.tests_require:
                 self.distribution.fetch_build_eggs(
                     self.distribution.tests_require)
 
