nixpkgs/pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix

32 lines
698 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, autobahn
, mock
, twisted
}:
buildPythonPackage rec {
pname = "magic-wormhole-transit-relay";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "0ppsx2s1ysikns1h053x67z2zmficbn3y3kf52bzzslhd2s02j6b";
};
propagatedBuildInputs = [ autobahn twisted ];
checkInputs = [ mock twisted ];
checkPhase = ''
trial -j$NIX_BUILD_CORES wormhole_transit_relay
'';
meta = with lib; {
description = "Transit Relay server for Magic-Wormhole";
homepage = "https://github.com/magic-wormhole/magic-wormhole-transit-relay";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}