33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
32 lines
704 B
Nix
32 lines
704 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 ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|