mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 06:31:15 +00:00
python3Packages.magic-wormhole-transit-relay: 0.4.0 -> 0.5.0
https://github.com/magic-wormhole/magic-wormhole-transit-relay/compare/refs/tags/0.4.0...refs/tags/0.5.0 https://github.com/magic-wormhole/magic-wormhole-transit-relay/blob/refs/tags/0.5.0/NEWS.md
This commit is contained in:
@@ -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
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user