python3.pkgs.snitun: fix port binding conflicts in test
This commit is contained in:
parent
7e822660c6
commit
c1f5ac41a3
1 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,6 @@
|
|||
{ lib, stdenv, buildPythonPackage, python, fetchFromGitHub, attrs, cryptography, async-timeout, pytest-aiohttp, pytest }:
|
||||
{ lib, stdenv, buildPythonPackage, python, fetchFromGitHub
|
||||
, attrs, cryptography, async-timeout, pytest-aiohttp, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "snitun";
|
||||
|
@ -13,12 +15,14 @@ buildPythonPackage rec {
|
|||
|
||||
propagatedBuildInputs = [ attrs cryptography async-timeout ];
|
||||
|
||||
checkInputs = [ pytest pytest-aiohttp ];
|
||||
checkInputs = [ pytestCheckHook pytest-aiohttp ];
|
||||
|
||||
checkPhase = ''
|
||||
# https://github.com/NabuCasa/snitun/issues/61
|
||||
pytest ${lib.optionalString stdenv.isDarwin "-k 'not test_multiplexer_data_channel_abort_full'"} tests/
|
||||
'';
|
||||
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"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/nabucasa/snitun";
|
||||
|
|
Loading…
Reference in a new issue