diff --git a/pkgs/development/python-modules/magic-wormhole/default.nix b/pkgs/development/python-modules/magic-wormhole/default.nix index d48fce2d2d973..0f01a6d2fd9a9 100644 --- a/pkgs/development/python-modules/magic-wormhole/default.nix +++ b/pkgs/development/python-modules/magic-wormhole/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, # build-system setuptools, @@ -45,6 +46,15 @@ buildPythonPackage rec { hash = "sha256-BxPF4iQ91wLBagdvQ/Y89VIZBkMxFiEHnK+BU55Bwr4="; }; + patches = [ + # TODO: drop patch for magic-wormhole > 0.17.0 + # fix test for twisted 24.10.0 (https://github.com/magic-wormhole/magic-wormhole/pull/554) + (fetchpatch { + name = "fix-twisted-24.10.0.patch"; + url = "https://github.com/magic-wormhole/magic-wormhole/commit/d7353cad6fe9d43620a0de33a634f395757d2e5c.patch"; + hash = "sha256-mvgVFW3Fa2I8/39ron0bYYsJNm2r97jnLFCfhtHSIP0="; + }) + ]; postPatch = # enable tests by fixing the location of the wormhole binary ''