python3.pkgs.uvicorn: 0.18.2 -> 0.20.0
Most notably this isn't using setuptools anymore, but pyproject as format. ChangeLogs: * https://github.com/encode/uvicorn/releases/tag/0.18.3 * https://github.com/encode/uvicorn/releases/tag/0.19.0 * https://github.com/encode/uvicorn/releases/tag/0.20.0
This commit is contained in:
parent
27dd8e291d
commit
29ad89a851
|
@ -11,19 +11,22 @@
|
|||
, uvloop
|
||||
, watchfiles
|
||||
, websockets
|
||||
, hatchling
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "uvicorn";
|
||||
version = "0.18.2";
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "0.20.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-nxtDqYh2OmDtoV10CEBGYQrQBf+Xtuf5k9yR6UfCgYc=";
|
||||
hash = "sha256-yca6JI3/aqdZF7SxFeYr84GOeQnLBmbm1dIXjngX9Ng=";
|
||||
};
|
||||
|
||||
outputs = [
|
||||
|
@ -31,6 +34,8 @@ buildPythonPackage rec {
|
|||
"testsout"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ hatchling ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
h11
|
||||
|
|
|
@ -16,6 +16,8 @@ buildPythonPackage rec {
|
|||
pname = "uvicorn-tests";
|
||||
inherit (uvicorn) version;
|
||||
|
||||
format = "other";
|
||||
|
||||
src = uvicorn.testsout;
|
||||
|
||||
dontBuild = true;
|
||||
|
@ -44,6 +46,8 @@ buildPythonPackage rec {
|
|||
disabledTests = [
|
||||
"test_supported_upgrade_request"
|
||||
"test_invalid_upgrade"
|
||||
"test_no_server_headers"
|
||||
"test_multiple_server_header"
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue