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

View file

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