Unverified Commit 8dffa177 authored by Matthieu Coudron's avatar Matthieu Coudron Committed by GitHub
Browse files

magic-wormhole: 0.20.0 -> 0.21.0 (#455476)

parents 73d5d11d 041b7411
Loading
Loading
Loading
Loading
+5 −13
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  installShellFiles,

  # build-system
@@ -32,8 +31,9 @@
  # tests
  net-tools,
  unixtools,
  magic-wormhole-transit-relay,
  hypothesis,
  magic-wormhole-mailbox-server,
  magic-wormhole-transit-relay,
  pytestCheckHook,
  pytest-twisted,

@@ -42,25 +42,16 @@

buildPythonPackage rec {
  pname = "magic-wormhole";
  version = "0.20.0";
  version = "0.21.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "magic-wormhole";
    repo = "magic-wormhole";
    tag = version;
    hash = "sha256-YjzdznZZ/0YTU83f3jlOr6+yOWQ++R1wU9IZDrfAMpo=";
    hash = "sha256-gsNdV6JvxsdlyPOSn07nTrvU4ju+3si3SQhyN8ZX/ac=";
  };

  patches = [
    # TODO: drop when updating beyond version 0.20.0
    (fetchpatch {
      name = "SubchannelDemultiplex._pending_opens-fix-type.patch";
      url = "https://github.com/magic-wormhole/magic-wormhole/commit/6d7f48786b5506df5b6a254bc4e37f6bf5d75593.patch";
      hash = "sha256-28YH3enyQ9rTT56OU7FfFonb9l8beJ9QRgPoItzrgu4=";
    })
  ];

  postPatch =
    # enable tests by fixing the location of the wormhole binary
    ''
@@ -106,6 +97,7 @@ buildPythonPackage rec {
  ];

  nativeCheckInputs = [
    hypothesis
    magic-wormhole-mailbox-server
    magic-wormhole-transit-relay
    pytestCheckHook