2019-07-25 22:02:18 +01:00
|
|
|
{ lib
|
2019-08-20 19:52:39 +01:00
|
|
|
, stdenv
|
2019-07-25 22:02:18 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiofiles
|
|
|
|
, graphene
|
|
|
|
, itsdangerous
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, ujson
|
2019-12-29 18:10:17 +00:00
|
|
|
, python-multipart
|
2019-07-25 22:02:18 +01:00
|
|
|
, pytest
|
|
|
|
, uvicorn
|
|
|
|
, isPy27
|
2019-08-20 19:52:39 +01:00
|
|
|
, darwin
|
2019-12-29 18:10:17 +00:00
|
|
|
, databases
|
|
|
|
, aiosqlite
|
2019-07-25 22:02:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "starlette";
|
2019-12-19 19:31:23 +00:00
|
|
|
version = "0.13.0";
|
2019-07-25 22:02:18 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:23 +00:00
|
|
|
sha256 = "6bd414152d40d000ccbf6aa40ed89718b40868366a0f69fb83034f416303acef";
|
2019-07-25 22:02:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
graphene
|
|
|
|
itsdangerous
|
|
|
|
jinja2
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
ujson
|
|
|
|
uvicorn
|
2019-12-29 18:10:17 +00:00
|
|
|
python-multipart
|
|
|
|
databases
|
2019-08-20 19:52:39 +01:00
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.ApplicationServices ];
|
2019-07-25 22:02:18 +01:00
|
|
|
|
2019-12-29 18:10:17 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
aiosqlite
|
|
|
|
];
|
|
|
|
|
2019-07-25 22:02:18 +01:00
|
|
|
checkPhase = ''
|
2019-12-29 18:10:17 +00:00
|
|
|
pytest --ignore=tests/test_graphql.py
|
2019-07-25 22:02:18 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://www.starlette.io/;
|
|
|
|
description = "The little ASGI framework that shines";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ wd15 ];
|
|
|
|
};
|
|
|
|
}
|