From 43f3b52f17aac918a76a79665a61461e74f4ca1a Mon Sep 17 00:00:00 2001
From: Eliah Kagan <degeneracypressure@gmail.com>
Date: Tue, 12 Dec 2023 07:26:04 -0500
Subject: [PATCH] Don't install black on Cygwin

As of black 23.12.0, installing black builds a wheel on Cygwin,
downloading dependencies for the "d" extra (i.e., black[d]), which
provides dependencies for running the blackd daemon. This includes
dependencies, such as asyncio, whose compilation fails on CI as it
is currently set up, fails under some common Cygwin setups (since
it needs a C compiler), and even if successful would cause the
Cygwin test workflow to take significantly longer to run.
---
 test-requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-requirements.txt b/test-requirements.txt
index fcdc93c1d..63fa0a9cd 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -1,4 +1,4 @@
-black
+black ; sys_platform != "cygwin"
 coverage[toml]
 ddt >= 1.1.1, != 1.4.3
 mock ; python_version < "3.8"