forked from mirrors/nixpkgs
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ lib, stdenv, buildPythonPackage, python, fetchFromGitHub
|
|
, attrs, cryptography, async-timeout, pytest-aiohttp, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "snitun";
|
|
version = "0.21.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NabuCasa";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-oZHi/H9HOqGTFuhqPSZXntMzVJ3ZT4zNejezo0cDtqg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ attrs cryptography async-timeout ];
|
|
|
|
checkInputs = [ pytestCheckHook pytest-aiohttp ];
|
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
"test_multiplexer_data_channel_abort_full" # https://github.com/NabuCasa/snitun/issues/61
|
|
# port binding conflicts
|
|
"test_snitun_single_runner_timeout"
|
|
"test_snitun_single_runner_throttling"
|
|
# ConnectionResetError: [Errno 54] Connection reset by peer
|
|
"test_peer_listener_timeout"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/nabucasa/snitun";
|
|
description = "SNI proxy with TCP multiplexer";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|