python3.pkgs.snitun: fix port binding conflicts in test

This commit is contained in:
Jörg Thalheim 2020-04-22 07:24:35 +01:00
parent 7e822660c6
commit c1f5ac41a3
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -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";