diff --git a/pkgs/development/python-modules/dramatiq-abort/default.nix b/pkgs/development/python-modules/dramatiq-abort/default.nix index b9a0d88c7086..3a8a5df6a215 100644 --- a/pkgs/development/python-modules/dramatiq-abort/default.nix +++ b/pkgs/development/python-modules/dramatiq-abort/default.nix @@ -22,6 +22,11 @@ buildPythonPackage rec { hash = "sha256-i5vL9yjQQambG8m6RDByr7/j8+PhDdLsai3pDrH1A4Q="; }; + patches = [ + # https://github.com/Flared/dramatiq-abort/pull/38 + ./dramatiq-2.0-stub-broker-fail-fast.patch + ]; + build-system = [ setuptools ]; dependencies = [ diff --git a/pkgs/development/python-modules/dramatiq-abort/dramatiq-2.0-stub-broker-fail-fast.patch b/pkgs/development/python-modules/dramatiq-abort/dramatiq-2.0-stub-broker-fail-fast.patch new file mode 100644 index 000000000000..d20fedffb651 --- /dev/null +++ b/pkgs/development/python-modules/dramatiq-abort/dramatiq-2.0-stub-broker-fail-fast.patch @@ -0,0 +1,11 @@ +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -32,7 +32,7 @@ def check_redis(client: Any) -> None: + + @pytest.fixture() + def stub_broker() -> Generator[dramatiq.Broker, None, None]: +- broker = StubBroker() ++ broker = StubBroker(fail_fast_default=False) + broker.emit_after("process_boot") + dramatiq.set_broker(broker) + yield broker