Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 956 B view raw
1{ lib, stdenv, buildPythonPackage, python, fetchFromGitHub 2, attrs, cryptography, async-timeout, pytest-aiohttp, pytestCheckHook 3}: 4 5buildPythonPackage rec { 6 pname = "snitun"; 7 version = "0.20"; 8 9 src = fetchFromGitHub { 10 owner = "NabuCasa"; 11 repo = pname; 12 rev = version; 13 sha256 = "1nscfwycclfbll709w1q46w6rl0r5c3b85rsc7zwc3ixd1k8aajp"; 14 }; 15 16 propagatedBuildInputs = [ attrs cryptography async-timeout ]; 17 18 checkInputs = [ pytestCheckHook pytest-aiohttp ]; 19 20 disabledTests = lib.optionals stdenv.isDarwin [ 21 "test_multiplexer_data_channel_abort_full" # https://github.com/NabuCasa/snitun/issues/61 22 # port binding conflicts 23 "test_snitun_single_runner_timeout" 24 "test_snitun_single_runner_throttling" 25 ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/nabucasa/snitun"; 29 description = "SNI proxy with TCP multiplexer"; 30 license = licenses.gpl3; 31 maintainers = with maintainers; [ Scriptkiddi ]; 32 }; 33}