snitun: fix macOS build

This commit is contained in:
Jörg Thalheim 2020-01-21 07:56:14 +00:00
parent 17a3674aad
commit 1d24ce5ba0
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, python, fetchFromGitHub, attrs, cryptography, async-timeout, pytest-aiohttp, pytest }:
{ lib, stdenv, buildPythonPackage, python, fetchFromGitHub, attrs, cryptography, async-timeout, pytest-aiohttp, pytest }:
buildPythonPackage rec {
pname = "snitun";
@ -16,7 +16,8 @@ buildPythonPackage rec {
checkInputs = [ pytest pytest-aiohttp ];
checkPhase = ''
pytest tests/
# https://github.com/NabuCasa/snitun/issues/61
pytest ${lib.optionalString stdenv.isDarwin "-k 'not test_multiplexer_data_channel_abort_full'"} tests/
'';
meta = with lib; {