2019-07-25 14:02:18 -07:00
|
|
|
{ lib
|
2019-08-20 11:52:39 -07:00
|
|
|
, stdenv
|
2019-07-25 14:02:18 -07:00
|
|
|
, buildPythonPackage
|
2020-02-28 08:17:48 -08:00
|
|
|
, fetchFromGitHub
|
2021-01-03 19:00:22 -08:00
|
|
|
, isPy27
|
2019-07-25 14:02:18 -07:00
|
|
|
, aiofiles
|
|
|
|
, graphene
|
|
|
|
, itsdangerous
|
|
|
|
, jinja2
|
2021-01-03 19:00:22 -08:00
|
|
|
, python-multipart
|
2019-07-25 14:02:18 -07:00
|
|
|
, pyyaml
|
|
|
|
, requests
|
2019-12-29 10:10:17 -08:00
|
|
|
, aiosqlite
|
2021-01-03 19:00:22 -08:00
|
|
|
, databases
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestcov
|
|
|
|
, typing-extensions
|
|
|
|
, ApplicationServices
|
2019-07-25 14:02:18 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "starlette";
|
2020-02-28 08:17:48 -08:00
|
|
|
|
2021-01-03 19:00:22 -08:00
|
|
|
version = "0.14.1";
|
2019-07-25 14:02:18 -07:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2020-02-28 08:17:48 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "encode";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-03 19:00:22 -08:00
|
|
|
sha256 = "0s0zl0ylxc5d9666zkvbwqfhngvjd79al1y69k674i0pkq2zg50j";
|
2019-07-25 14:02:18 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
graphene
|
|
|
|
itsdangerous
|
|
|
|
jinja2
|
2021-01-03 19:00:22 -08:00
|
|
|
python-multipart
|
2019-07-25 14:02:18 -07:00
|
|
|
pyyaml
|
|
|
|
requests
|
2021-01-03 19:00:22 -08:00
|
|
|
] ++ lib.optional stdenv.isDarwin [ ApplicationServices ];
|
2019-07-25 14:02:18 -07:00
|
|
|
|
2019-12-29 10:10:17 -08:00
|
|
|
checkInputs = [
|
|
|
|
aiosqlite
|
2021-01-03 19:00:22 -08:00
|
|
|
databases
|
|
|
|
graphene
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pytestcov
|
|
|
|
typing-extensions
|
2019-12-29 10:10:17 -08:00
|
|
|
];
|
|
|
|
|
2020-08-27 15:27:15 -07:00
|
|
|
pythonImportsCheck = [ "starlette" ];
|
2019-07-25 14:02:18 -07:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-07 00:21:33 -07:00
|
|
|
homepage = "https://www.starlette.io/";
|
2019-07-25 14:02:18 -07:00
|
|
|
description = "The little ASGI framework that shines";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ wd15 ];
|
|
|
|
};
|
|
|
|
}
|