mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
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
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, six
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||
, aiohttp
|
||||
, eventlet
|
||||
, mock
|
||||
, iana-etc
|
||||
, libredirect
|
||||
, aiohttp
|
||||
, websockets
|
||||
, websocket_client
|
||||
, mock
|
||||
, requests
|
||||
, six
|
||||
, tornado
|
||||
, websocket_client
|
||||
, websockets
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-engineio";
|
||||
version = "3.4.3";
|
||||
version = "3.9.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "miguelgrinberg";
|
||||
repo = "python-engineio";
|
||||
rev = "v${version}";
|
||||
sha256 = "0wk81rqigw47z087f5kc7b9iwqggypxc62q8q818qyzqwb93ysxf";
|
||||
sha256 = "0rwlj12d37dpw6y3bdn6rxv68xnd9ykj4fr3ly0fa143xci35d9y";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -29,13 +27,13 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aiohttp
|
||||
eventlet
|
||||
mock
|
||||
aiohttp
|
||||
websockets
|
||||
websocket_client
|
||||
tornado
|
||||
requests
|
||||
tornado
|
||||
websocket_client
|
||||
websockets
|
||||
];
|
||||
|
||||
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
||||
|
@ -1,23 +1,27 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, click
|
||||
, h11
|
||||
, httptools
|
||||
, uvloop
|
||||
, websockets
|
||||
, wsproto
|
||||
, pytest
|
||||
, requests
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "uvicorn";
|
||||
version = "0.8.4";
|
||||
version = "0.9.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1l8rfm30inx9pma893i7sby9h7y910k58841zqaajksn563b882k";
|
||||
src = fetchFromGitHub {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0z4h04mbkzqgpk698bac6f50jxkf02ils6khzl7zbw7yvi6gkkc8";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -29,11 +33,15 @@ buildPythonPackage rec {
|
||||
wsproto
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
$out/bin/uvicorn --help
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "h11==0.8.*" "h11"
|
||||
'';
|
||||
|
||||
patches = [ ./setup.patch ];
|
||||
checkInputs = [ pytest requests ];
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
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
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "websockets";
|
||||
version = "7.0";
|
||||
version = "8.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "17vwr6sa1y3lb24wzfyyc98c5v03di4j8f24qkqa9vsvaghc7qq8";
|
||||
src = fetchFromGitHub {
|
||||
owner = "aaugustin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "02fgb8gib4z5fqv30brz3mhxmblw9bw0978fhpjdrkj7wvqrz5h8";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.3";
|
||||
doCheck = false; # protocol tests fail
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "WebSocket implementation in Python 3";
|
||||
homepage = https://github.com/aaugustin/websockets;
|
||||
license = lib.licenses.bsd3;
|
||||
homepage = "https://github.com/aaugustin/websockets";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user