2018-02-19 16:10:59 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, twisted, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "magic-wormhole-transit-relay";
|
2019-10-22 16:34:00 +01:00
|
|
|
version = "0.2.1";
|
2018-02-19 16:10:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-22 16:34:00 +01:00
|
|
|
sha256 = "0ppsx2s1ysikns1h053x67z2zmficbn3y3kf52bzzslhd2s02j6b";
|
2018-02-19 16:10:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ twisted ];
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-02-10 21:42:14 +00:00
|
|
|
${twisted}/bin/trial wormhole_transit_relay
|
2018-02-19 16:10:59 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Transit Relay server for Magic-Wormhole";
|
|
|
|
homepage = https://github.com/warner/magic-wormhole-transit-relay;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|