python312Packages.python-socketio: add __darwinAllowLocalNetworking
This commit is contained in:
parent
a04f8743c7
commit
875cba81ba
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pythonOlder,
|
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
setuptools,
|
setuptools,
|
||||||
@ -29,8 +29,6 @@ buildPythonPackage rec {
|
|||||||
version = "5.11.4";
|
version = "5.11.4";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "miguelgrinberg";
|
owner = "miguelgrinberg";
|
||||||
repo = "python-socketio";
|
repo = "python-socketio";
|
||||||
@ -38,9 +36,9 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-iWe9IwUR+nq9SAmHzFZYUJpVOOEbc1ZdiMAjaBjQrVs=";
|
hash = "sha256-iWe9IwUR+nq9SAmHzFZYUJpVOOEbc1ZdiMAjaBjQrVs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
bidict
|
bidict
|
||||||
python-engineio
|
python-engineio
|
||||||
];
|
];
|
||||||
@ -62,7 +60,15 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
pythonImportsCheck = [ "socketio" ];
|
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";
|
description = "Python Socket.IO server and client";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Socket.IO is a lightweight transport protocol that enables real-time
|
Socket.IO is a lightweight transport protocol that enables real-time
|
||||||
@ -70,7 +76,7 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
homepage = "https://github.com/miguelgrinberg/python-socketio/";
|
homepage = "https://github.com/miguelgrinberg/python-socketio/";
|
||||||
changelog = "https://github.com/miguelgrinberg/python-socketio/blob/v${version}/CHANGES.md";
|
changelog = "https://github.com/miguelgrinberg/python-socketio/blob/v${version}/CHANGES.md";
|
||||||
license = with licenses; [ mit ];
|
license = with lib.licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ mic92 ];
|
maintainers = with lib.maintainers; [ mic92 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user