Martin Joerg
2026-03-12 10:22:44 +00:00
parent a351a0427f
commit 175c830393

View File

@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
autobahn,
twisted,
@@ -12,25 +11,16 @@
buildPythonPackage (finalAttrs: {
pname = "magic-wormhole-transit-relay";
version = "0.4.0";
version = "0.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "magic-wormhole";
repo = "magic-wormhole-transit-relay";
tag = finalAttrs.version;
hash = "sha256-AKLmiOlxNDd8rxNeWTDTPxtSoEyTGZ5PMLgyVxcIHcg=";
hash = "sha256-UhV0M8Nl9Y850PQcJoDyIvIPRyBS8gyF2Ub9qF3aq0U=";
};
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.
substituteInPlace src/wormhole_transit_relay/test/test_backpressure.py --replace-fail \
@@ -42,7 +32,6 @@ buildPythonPackage (finalAttrs: {
dependencies = [
autobahn
setuptools # pkg_resources is referenced at runtime
twisted
];