33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, async-timeout
|
|
, attrs
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "snitun";
|
|
version = "0.31.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NabuCasa";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-Ehafb35H462Ffn6omGh/MDJKQX5qJJZeiIBO3n0IGlA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
attrs
|
|
cryptography
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
];
|
|
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [ "snitun" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/nabucasa/snitun";
|
|
description = "SNI proxy with TCP multiplexer";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|