depot/third_party/nixpkgs/pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
996 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
autobahn,
mock,
twisted,
pythonOlder,
pythonAtLeast,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "magic-wormhole-transit-relay";
version = "0.2.1";
pyproject = true;
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
src = fetchPypi {
inherit pname version;
hash = "sha256-y0gBtGiQ6v+XKG4OP+xi0dUv/jF9FACDtjNqH7To+l4=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
autobahn
twisted
];
pythonImportsCheck = [ "wormhole_transit_relay" ];
nativeCheckInputs = [
pytestCheckHook
mock
twisted
];
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 ];
};
}