Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchPypi, setuptools, autobahn, twisted, python, pytestCheckHook,}:
buildPythonPackage rec { pname = "magic-wormhole-transit-relay"; version = "0.4.0"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-kS2DXaIbESZsdxEdybXlgAJj/AuY8KF5liJn30GBnow="; };
postPatch = '' # Passing the environment to twistd is necessary to preserve Python's site path. substituteInPlace src/wormhole_transit_relay/test/test_backpressure.py --replace-fail \ 'reactor.spawnProcess(proto, exe, args)' \ 'reactor.spawnProcess(proto, exe, args, None)' '';
build-system = [ setuptools ];
dependencies = [ autobahn setuptools # pkg_resources is referenced at runtime twisted ];
pythonImportsCheck = [ "wormhole_transit_relay" ];
nativeCheckInputs = [ pytestCheckHook twisted ];
__darwinAllowLocalNetworking = true;
postCheck = '' # Avoid collision with twisted's plugin cache (#164775). rm "$out/${python.sitePackages}/twisted/plugins/dropin.cache" '';
meta = { description = "Transit Relay server for Magic-Wormhole"; homepage = "https://github.com/magic-wormhole/magic-wormhole-transit-relay"; changelog = "https://github.com/magic-wormhole/magic-wormhole-transit-relay/blob/${version}/NEWS.md"; license = lib.licenses.mit; maintainers = [ lib.maintainers.mjoerg ]; };}