python3Packages.magic-wormhole-transit-relay: fix build against twisted 25.5.0

Changed files
+10
pkgs
development
python-modules
magic-wormhole-transit-relay
+10
pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix
···
lib,
buildPythonPackage,
fetchPypi,
+
fetchpatch,
setuptools,
autobahn,
twisted,
···
inherit pname version;
hash = "sha256-kS2DXaIbESZsdxEdybXlgAJj/AuY8KF5liJn30GBnow=";
};
+
+
patches = [
+
# TODO: drop when updating beyond version 0.4.0
+
(fetchpatch {
+
name = "stock-Twisted-testing-reactor-seems-to-work.patch";
+
url = "https://github.com/magic-wormhole/magic-wormhole-transit-relay/commit/3abb80fd5e55bd0ba8ee66278ccf76be5f904622.patch";
+
hash = "sha256-qMaJ58kPWvEfnSZiFzxO6GlkBiyVMsgGDEa1deITZco=";
+
})
+
];
postPatch = ''
# Passing the environment to twistd is necessary to preserve Python's site path.