diff --git a/pkgs/development/python-modules/python-socketio/default.nix b/pkgs/development/python-modules/python-socketio/default.nix index c59201a466cd..0d05971cd2bb 100644 --- a/pkgs/development/python-modules/python-socketio/default.nix +++ b/pkgs/development/python-modules/python-socketio/default.nix @@ -1,8 +1,8 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, - pythonOlder, # build-system setuptools, @@ -29,8 +29,6 @@ buildPythonPackage rec { version = "5.11.4"; pyproject = true; - disabled = pythonOlder "3.6"; - src = fetchFromGitHub { owner = "miguelgrinberg"; repo = "python-socketio"; @@ -38,9 +36,9 @@ buildPythonPackage rec { hash = "sha256-iWe9IwUR+nq9SAmHzFZYUJpVOOEbc1ZdiMAjaBjQrVs="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ bidict python-engineio ]; @@ -62,7 +60,15 @@ buildPythonPackage rec { pythonImportsCheck = [ "socketio" ]; - meta = with lib; { + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ + # Use fixed ports which leads to failures when building concurrently + "tests/async/test_admin.py" + "tests/common/test_admin.py" + ]; + + __darwinAllowLocalNetworking = true; + + meta = { description = "Python Socket.IO server and client"; longDescription = '' Socket.IO is a lightweight transport protocol that enables real-time @@ -70,7 +76,7 @@ buildPythonPackage rec { ''; homepage = "https://github.com/miguelgrinberg/python-socketio/"; changelog = "https://github.com/miguelgrinberg/python-socketio/blob/v${version}/CHANGES.md"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ mic92 ]; + license = with lib.licenses; [ mit ]; + maintainers = with lib.maintainers; [ mic92 ]; }; }