about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/uvicorn/default.nix
blob: 1bf0d1c54f06939301c33886fdb2afa75ca43a4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchPypi
, click
, h11
, httptools
, uvloop
, websockets
, wsproto
, isPy27
}:

buildPythonPackage rec {
  pname = "uvicorn";
  version = "0.8.4";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1l8rfm30inx9pma893i7sby9h7y910k58841zqaajksn563b882k";
  };

  propagatedBuildInputs = [
    click
    h11
    httptools
    uvloop
    websockets
    wsproto
  ];

  checkPhase = ''
    $out/bin/uvicorn --help
  '';

  patches = [ ./setup.patch ];

  meta = with lib; {
    homepage = https://www.uvicorn.org/;
    description = "The lightning-fast ASGI server";
    license = licenses.bsd3;
    maintainers = with maintainers; [ wd15 ];
  };
}