mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
pythonPackages.uvicorn: init at 0.8.4
This commit is contained in:
parent
3b7b86f67d
commit
266d0bbf2c
44
pkgs/development/python-modules/uvicorn/default.nix
Normal file
44
pkgs/development/python-modules/uvicorn/default.nix
Normal file
@ -0,0 +1,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 ];
|
||||
};
|
||||
}
|
13
pkgs/development/python-modules/uvicorn/setup.patch
Normal file
13
pkgs/development/python-modules/uvicorn/setup.patch
Normal file
@ -0,0 +1,13 @@
|
||||
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,
|
@ -6038,6 +6038,8 @@ in {
|
||||
aioesphomeapi = callPackage ../development/python-modules/aioesphomeapi { };
|
||||
|
||||
mwparserfromhell = callPackage ../development/python-modules/mwparserfromhell { };
|
||||
uvicorn = callPackage ../development/python-modules/uvicorn { };
|
||||
|
||||
});
|
||||
|
||||
in fix' (extends overrides packages)
|
||||
|
Loading…
Reference in New Issue
Block a user