Merge pull request #108566 from fabaff/python-XXXio

python3Packages.python-engineio: 3.13.2 -> 4.0.0
This commit is contained in:
Jörg Thalheim 2021-01-06 09:23:14 +00:00 committed by GitHub
commit a9a348e8f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 56 additions and 37 deletions

View File

@ -1,18 +1,21 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi
, flask
, python-socketio
, coverage , coverage
, fetchFromGitHub
, flask
, pytestCheckHook
, python-socketio
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "Flask-SocketIO"; pname = "Flask-SocketIO";
version = "4.3.2"; version = "5.0.1";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "miguelgrinberg";
sha256 = "37001b3507f2fa5d1c8d9c8e211dd88da6c5286ff0ebce16f27cb1b467d25d68"; repo = "Flask-SocketIO";
rev = "v${version}";
sha256 = "01zf6cy95pgc4flgn0740z2my90l7rxwliahp6rb2xbp7rh32cng";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -20,9 +23,12 @@ buildPythonPackage rec {
python-socketio python-socketio
]; ];
checkInputs = [ coverage ]; checkInputs = [
# tests only on github, but lates release there is not tagged coverage
doCheck = false; pytestCheckHook
];
pythonImportsCheck = [ "flask_socketio" ];
meta = with lib; { meta = with lib; {
description = "Socket.IO integration for Flask applications"; description = "Socket.IO integration for Flask applications";

View File

@ -1,4 +1,6 @@
{ stdenv, buildPythonPackage, fetchFromGitHub { stdenv
, buildPythonPackage
, fetchFromGitHub
, aiohttp , aiohttp
, eventlet , eventlet
, iana-etc , iana-etc
@ -14,19 +16,15 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-engineio"; pname = "python-engineio";
version = "3.13.2"; version = "4.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "miguelgrinberg"; owner = "miguelgrinberg";
repo = "python-engineio"; repo = "python-engineio";
rev = "v${version}"; rev = "v${version}";
sha256 = "1hn5nnxp7y2dpf52vrwdxza2sqmzj8admcnwgjkmcxk65s2dhvy1"; sha256 = "00x9pmmnl1yd59wd96ivkiqh4n5nphl8cwk43hf4nqr0icgsyhar";
}; };
propagatedBuildInputs = [
six
];
checkInputs = [ checkInputs = [
aiohttp aiohttp
eventlet eventlet
@ -47,11 +45,16 @@ buildPythonPackage rec {
# somehow effective log level does not change? # somehow effective log level does not change?
disabledTests = [ "test_logger" ]; disabledTests = [ "test_logger" ];
pythonImportsCheck = [ "engineio" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Engine.IO server"; description = "Python based Engine.IO client and server";
longDescription = ''
Engine.IO is a lightweight transport protocol that enables real-time
bidirectional event-based communication between clients and a server.
'';
homepage = "https://github.com/miguelgrinberg/python-engineio/"; homepage = "https://github.com/miguelgrinberg/python-engineio/";
license = licenses.mit; license = with licenses; [ mit ];
maintainers = [ maintainers.mic92 ]; maintainers = with maintainers; [ mic92 ];
}; };
} }

View File

@ -1,33 +1,43 @@
{ lib { stdenv
, bidict
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, six
, python-engineio
, mock , mock
, pytestCheckHook
, python-engineio
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-socketio"; pname = "python-socketio";
version = "4.6.1"; version = "5.0.4";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "miguelgrinberg";
sha256 = "cd1f5aa492c1eb2be77838e837a495f117e17f686029ebc03d62c09e33f4fa10"; repo = "python-socketio";
rev = "v${version}";
sha256 = "0mpqr53mrdzk9ki24y1inpsfvjlvm7pvxf8q4d52m80i5pcd5v5q";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
six bidict
python-engineio python-engineio
]; ];
checkInputs = [ mock ]; checkInputs = [
# tests only on github, but latest github release not tagged mock
doCheck = false; pytestCheckHook
];
meta = with lib; { pythonImportsCheck = [ "socketio" ];
description = "Socket.IO server";
homepage = "https://github.com/miguelgrinberg/python-socketio/"; meta = with stdenv.lib; {
license = licenses.mit; description = "Python Socket.IO server and client";
maintainers = [ maintainers.mic92 ]; longDescription = ''
Socket.IO is a lightweight transport protocol that enables real-time
bidirectional event-based communication between clients and a server.
'';
homepage = "https://github.com/miguelgrinberg/python-engineio/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ mic92 ];
}; };
} }