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
|
2020-02-28 16:17:48 +00:00
|
|
|
, fetchFromGitHub
|
2021-01-04 03:00:22 +00:00
|
|
|
, isPy27
|
2019-07-25 22:02:18 +01:00
|
|
|
, aiofiles
|
|
|
|
, graphene
|
|
|
|
, itsdangerous
|
|
|
|
, jinja2
|
2021-01-04 03:00:22 +00:00
|
|
|
, python-multipart
|
2019-07-25 22:02:18 +01:00
|
|
|
, pyyaml
|
|
|
|
, requests
|
2021-01-04 09:38:27 +00:00
|
|
|
, ujson
|
2019-12-29 18:10:17 +00:00
|
|
|
, aiosqlite
|
2021-01-04 03:00:22 +00:00
|
|
|
, databases
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, typing-extensions
|
|
|
|
, ApplicationServices
|
2019-07-25 22:02:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "starlette";
|
2021-01-04 09:38:27 +00:00
|
|
|
version = "0.13.8";
|
2019-07-25 22:02:18 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2020-02-28 16:17:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "encode";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-04 09:38:27 +00:00
|
|
|
sha256 = "11i0yd8cqwscixajl734g11vf8pghki11c81chzfh8ifmj6mf9jk";
|
2019-07-25 22:02:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
graphene
|
|
|
|
itsdangerous
|
|
|
|
jinja2
|
2021-01-04 03:00:22 +00:00
|
|
|
python-multipart
|
2019-07-25 22:02:18 +01:00
|
|
|
pyyaml
|
|
|
|
requests
|
2021-01-04 09:38:27 +00:00
|
|
|
ujson
|
2021-01-04 03:00:22 +00:00
|
|
|
] ++ lib.optional stdenv.isDarwin [ ApplicationServices ];
|
2019-07-25 22:02:18 +01:00
|
|
|
|
2019-12-29 18:10:17 +00:00
|
|
|
checkInputs = [
|
|
|
|
aiosqlite
|
2021-01-04 03:00:22 +00:00
|
|
|
databases
|
2021-02-10 20:32:08 +00:00
|
|
|
pytest-asyncio
|
2021-01-04 03:00:22 +00:00
|
|
|
pytestCheckHook
|
|
|
|
typing-extensions
|
2019-12-29 18:10:17 +00:00
|
|
|
];
|
|
|
|
|
2021-02-10 20:32:08 +00:00
|
|
|
disabledTestFiles = [ "tests/test_graphql.py" ];
|
|
|
|
# https://github.com/encode/starlette/issues/1131
|
|
|
|
disabledTests = [ "test_debug_html" ];
|
2020-08-27 23:27:15 +01:00
|
|
|
pythonImportsCheck = [ "starlette" ];
|
2019-07-25 22:02:18 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-07 08:21:33 +01:00
|
|
|
homepage = "https://www.starlette.io/";
|
2019-07-25 22:02:18 +01:00
|
|
|
description = "The little ASGI framework that shines";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ wd15 ];
|
|
|
|
};
|
|
|
|
}
|