Unverified Commit 29ad89a8 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

python3.pkgs.uvicorn: 0.18.2 -> 0.20.0

parent 27dd8e29
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -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"
  ];
}