python3Packages.uvicorn: 0.11.2 -> 0.11.5

This commit is contained in:
Jonathan Ringer 2020-06-12 11:29:06 -07:00
parent db59d205fe
commit b9ace1fb05
1 changed files with 6 additions and 10 deletions

View File

@ -14,14 +14,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "uvicorn"; pname = "uvicorn";
version = "0.11.2"; version = "0.11.5";
disabled = isPy27; disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "encode"; owner = "encode";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "145c569j4511zw3wglyv9qgd7g1757ypi2blcckpcmahqw11l5p2"; sha256 = "0cf0vw6kzxwlkvk5gw85wv3kg1kdil0wkq3s7rmxpvrk6gjk8jvq";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -35,18 +35,14 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "h11==0.8.*" "h11" --replace "h11==0.8.*" "h11" \
--replace "httptools==0.0.13" "httptools"
''; '';
checkInputs = [ pytest requests ]; checkInputs = [ pytest requests ];
# watchgod required the watchgod package, which isn't available in nixpkgs
checkPhase = '' checkPhase = ''
pytest pytest --ignore=tests/supervisors/test_watchgodreload.py
'';
# LICENCE.md gets propagated without this, causing collisions
# see https://github.com/encode/uvicorn/issues/392
postInstall = ''
rm $out/LICENSE.md
''; '';
meta = with lib; { meta = with lib; {