2018-02-19 16:10:59 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, twisted, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "magic-wormhole-transit-relay";
|
2018-04-04 19:11:07 +01:00
|
|
|
version = "0.1.2";
|
2018-02-19 16:10:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 19:11:07 +01:00
|
|
|
sha256 = "b13f1bfab295150b25958014d93fcd9f744d92011d186d7381575465587b8587";
|
2018-02-19 16:10:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ twisted ];
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
python -m twisted.trial wormhole_transit_relay
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Transit Relay server for Magic-Wormhole";
|
|
|
|
homepage = https://github.com/warner/magic-wormhole-transit-relay;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|