python3Packages.uvicorn: 0.8.4 -> 0.9.0
This commit is contained in:
parent
9b092e228b
commit
80d1a3b37c
@ -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,
|
|
Loading…
Reference in New Issue
Block a user