f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
autobahn,
|
|
mock,
|
|
twisted,
|
|
pythonOlder,
|
|
pythonAtLeast,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "magic-wormhole-transit-relay";
|
|
version = "0.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-y0gBtGiQ6v+XKG4OP+xi0dUv/jF9FACDtjNqH7To+l4=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
autobahn
|
|
setuptools # pkg_resources is referenced at runtime
|
|
twisted
|
|
];
|
|
|
|
pythonImportsCheck = [ "wormhole_transit_relay" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
mock
|
|
twisted
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
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 ];
|
|
# Python 3.12 support: https://github.com/magic-wormhole/magic-wormhole-transit-relay/issues/35
|
|
broken = pythonOlder "3.7" || pythonAtLeast "3.12";
|
|
};
|
|
}
|