pythonPackages.starlette: init at 0.12.4

This commit is contained in:
Daniel Wheeler 2019-07-25 17:02:18 -04:00 committed by Frederik Rietdijk
parent 266d0bbf2c
commit 1c3c07394a
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiofiles
, graphene
, itsdangerous
, jinja2
, pyyaml
, requests
, ujson
, pytest
, python
, uvicorn
, isPy27
}:
buildPythonPackage rec {
pname = "starlette";
version = "0.12.4";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1m7qf4g5dn7n36406zbqsag71nmwp2dz91yxpplm7h7wiw2xxw93";
};
propagatedBuildInputs = [
aiofiles
graphene
itsdangerous
jinja2
pyyaml
requests
ujson
uvicorn
];
checkPhase = ''
${python.interpreter} -c """
from starlette.applications import Starlette
app = Starlette(debug=True)
"""
'';
meta = with lib; {
homepage = https://www.starlette.io/;
description = "The little ASGI framework that shines";
license = licenses.bsd3;
maintainers = with maintainers; [ wd15 ];
};
}

View File

@ -6038,6 +6038,9 @@ in {
aioesphomeapi = callPackage ../development/python-modules/aioesphomeapi { };
mwparserfromhell = callPackage ../development/python-modules/mwparserfromhell { };
starlette = callPackage ../development/python-modules/starlette { };
uvicorn = callPackage ../development/python-modules/uvicorn { };
});