diff options
author | Daniel Wheeler <daniel.wheeler2@gmail.com> | 2019-07-25 17:02:18 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-07-27 11:50:48 +0200 |
commit | 1c3c07394aa241dd982e7f0c5fffdb3c953f654c (patch) | |
tree | e94953ec146020edaa3e382b05eebde9030569a6 /pkgs/development/python-modules/starlette | |
parent | 266d0bbf2ca7c0f84cfa37efd06e1f78cc516f81 (diff) | |
download | nixpkgs-1c3c07394aa241dd982e7f0c5fffdb3c953f654c.tar nixpkgs-1c3c07394aa241dd982e7f0c5fffdb3c953f654c.tar.gz nixpkgs-1c3c07394aa241dd982e7f0c5fffdb3c953f654c.tar.bz2 nixpkgs-1c3c07394aa241dd982e7f0c5fffdb3c953f654c.tar.lz nixpkgs-1c3c07394aa241dd982e7f0c5fffdb3c953f654c.tar.xz nixpkgs-1c3c07394aa241dd982e7f0c5fffdb3c953f654c.tar.zst nixpkgs-1c3c07394aa241dd982e7f0c5fffdb3c953f654c.zip |
pythonPackages.starlette: init at 0.12.4
Diffstat (limited to 'pkgs/development/python-modules/starlette')
-rw-r--r-- | pkgs/development/python-modules/starlette/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/starlette/default.nix b/pkgs/development/python-modules/starlette/default.nix new file mode 100644 index 00000000000..6e2bd8250b6 --- /dev/null +++ b/pkgs/development/python-modules/starlette/default.nix @@ -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 ]; + }; +} |