python3Packages.{websockets, uvicorn,python-engineio}: bump an… (#68939)
python3Packages.{websockets, uvicorn,python-engineio}: bump and fix builds
This commit is contained in:
commit
0a56a467c5
|
@ -1,27 +1,25 @@
|
||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||||
, buildPythonPackage
|
, aiohttp
|
||||||
, fetchFromGitHub
|
|
||||||
, six
|
|
||||||
, eventlet
|
, eventlet
|
||||||
, mock
|
|
||||||
, iana-etc
|
, iana-etc
|
||||||
, libredirect
|
, libredirect
|
||||||
, aiohttp
|
, mock
|
||||||
, websockets
|
|
||||||
, websocket_client
|
|
||||||
, requests
|
, requests
|
||||||
|
, six
|
||||||
, tornado
|
, tornado
|
||||||
|
, websocket_client
|
||||||
|
, websockets
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-engineio";
|
pname = "python-engineio";
|
||||||
version = "3.4.3";
|
version = "3.9.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "miguelgrinberg";
|
owner = "miguelgrinberg";
|
||||||
repo = "python-engineio";
|
repo = "python-engineio";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0wk81rqigw47z087f5kc7b9iwqggypxc62q8q818qyzqwb93ysxf";
|
sha256 = "0rwlj12d37dpw6y3bdn6rxv68xnd9ykj4fr3ly0fa143xci35d9y";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -29,13 +27,13 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
aiohttp
|
||||||
eventlet
|
eventlet
|
||||||
mock
|
mock
|
||||||
aiohttp
|
|
||||||
websockets
|
|
||||||
websocket_client
|
|
||||||
tornado
|
|
||||||
requests
|
requests
|
||||||
|
tornado
|
||||||
|
websocket_client
|
||||||
|
websockets
|
||||||
];
|
];
|
||||||
|
|
||||||
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
||||||
|
|
|
@ -1,23 +1,27 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, click
|
, click
|
||||||
, h11
|
, h11
|
||||||
, httptools
|
, httptools
|
||||||
, uvloop
|
, uvloop
|
||||||
, websockets
|
, websockets
|
||||||
, wsproto
|
, wsproto
|
||||||
|
, pytest
|
||||||
|
, requests
|
||||||
, isPy27
|
, isPy27
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "uvicorn";
|
pname = "uvicorn";
|
||||||
version = "0.8.4";
|
version = "0.9.0";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "encode";
|
||||||
sha256 = "1l8rfm30inx9pma893i7sby9h7y910k58841zqaajksn563b882k";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0z4h04mbkzqgpk698bac6f50jxkf02ils6khzl7zbw7yvi6gkkc8";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -29,11 +33,15 @@ buildPythonPackage rec {
|
||||||
wsproto
|
wsproto
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
postPatch = ''
|
||||||
$out/bin/uvicorn --help
|
substituteInPlace setup.py \
|
||||||
|
--replace "h11==0.8.*" "h11"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = [ ./setup.patch ];
|
checkInputs = [ pytest requests ];
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = https://www.uvicorn.org/;
|
homepage = https://www.uvicorn.org/;
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index 802cda4..561abf4 100755
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -42,7 +42,7 @@ env_marker = (
|
|
||||||
|
|
||||||
requirements = [
|
|
||||||
"click==7.*",
|
|
||||||
- "h11==0.8.*",
|
|
||||||
+ "h11",
|
|
||||||
"websockets==7.*",
|
|
||||||
"httptools==0.0.13 ;" + env_marker,
|
|
||||||
"uvloop==0.12.* ;" + env_marker,
|
|
|
@ -1,24 +1,26 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "websockets";
|
pname = "websockets";
|
||||||
version = "7.0";
|
version = "8.0.2";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "aaugustin";
|
||||||
sha256 = "17vwr6sa1y3lb24wzfyyc98c5v03di4j8f24qkqa9vsvaghc7qq8";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "02fgb8gib4z5fqv30brz3mhxmblw9bw0978fhpjdrkj7wvqrz5h8";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.3";
|
disabled = pythonOlder "3.3";
|
||||||
doCheck = false; # protocol tests fail
|
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "WebSocket implementation in Python 3";
|
description = "WebSocket implementation in Python 3";
|
||||||
homepage = https://github.com/aaugustin/websockets;
|
homepage = "https://github.com/aaugustin/websockets";
|
||||||
license = lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue