2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, aiofiles
|
|
|
|
, cbor2
|
2020-04-24 23:36:52 +00:00
|
|
|
, ddt
|
2021-12-06 16:07:01 +00:00
|
|
|
, gunicorn
|
|
|
|
, httpx
|
|
|
|
, hypercorn
|
|
|
|
, jsonschema
|
|
|
|
, msgpack
|
|
|
|
, mujson
|
2020-04-24 23:36:52 +00:00
|
|
|
, nose
|
2021-12-06 16:07:01 +00:00
|
|
|
, orjson
|
|
|
|
, pecan
|
|
|
|
, pytest-asyncio
|
|
|
|
, python-mimeparse
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyyaml
|
2021-12-06 16:07:01 +00:00
|
|
|
, rapidjson
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
|
|
|
, testtools
|
2021-12-06 16:07:01 +00:00
|
|
|
, ujson
|
|
|
|
, uvicorn
|
|
|
|
, websockets
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "falcon";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "3.0.1";
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-xB2E2zJYgahw6LcSnV7P2XL6QyPPd7cRmh0qIZZu5oE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
aiofiles
|
|
|
|
cbor2
|
|
|
|
ddt
|
|
|
|
gunicorn
|
|
|
|
httpx
|
|
|
|
hypercorn
|
|
|
|
jsonschema
|
|
|
|
msgpack
|
|
|
|
mujson
|
|
|
|
nose
|
|
|
|
orjson
|
|
|
|
pecan
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
python-mimeparse
|
|
|
|
pyyaml
|
|
|
|
rapidjson
|
|
|
|
requests
|
|
|
|
testtools
|
|
|
|
ujson
|
|
|
|
uvicorn
|
|
|
|
websockets
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# missing optional nuts package
|
|
|
|
"falcon/bench/nuts/nuts/tests/test_functional.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An unladen web framework for building APIs and app backends";
|
|
|
|
homepage = "https://falconframework.org/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|