pythonPackages.starlette: init at 0.12.4
This commit is contained in:
parent
266d0bbf2c
commit
1c3c07394a
51
pkgs/development/python-modules/starlette/default.nix
Normal file
51
pkgs/development/python-modules/starlette/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user