1{ lib
2, buildPythonPackage
3, fetchPypi
4, aiofiles
5, graphene
6, itsdangerous
7, jinja2
8, pyyaml
9, requests
10, ujson
11, pytest
12, python
13, uvicorn
14, isPy27
15}:
16
17buildPythonPackage rec {
18 pname = "starlette";
19 version = "0.12.4";
20 disabled = isPy27;
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "1m7qf4g5dn7n36406zbqsag71nmwp2dz91yxpplm7h7wiw2xxw93";
25 };
26
27 propagatedBuildInputs = [
28 aiofiles
29 graphene
30 itsdangerous
31 jinja2
32 pyyaml
33 requests
34 ujson
35 uvicorn
36 ];
37
38 checkPhase = ''
39 ${python.interpreter} -c """
40from starlette.applications import Starlette
41app = Starlette(debug=True)
42"""
43 '';
44
45 meta = with lib; {
46 homepage = https://www.starlette.io/;
47 description = "The little ASGI framework that shines";
48 license = licenses.bsd3;
49 maintainers = with maintainers; [ wd15 ];
50 };
51}