77 lines
1.2 KiB
Nix
77 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, aiofiles
|
|
, cbor2
|
|
, ddt
|
|
, gunicorn
|
|
, httpx
|
|
, hypercorn
|
|
, jsonschema
|
|
, msgpack
|
|
, mujson
|
|
, nose
|
|
, orjson
|
|
, pecan
|
|
, pytest-asyncio
|
|
, python-mimeparse
|
|
, pyyaml
|
|
, rapidjson
|
|
, requests
|
|
, testtools
|
|
, ujson
|
|
, uvicorn
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "falcon";
|
|
version = "3.0.1";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-xB2E2zJYgahw6LcSnV7P2XL6QyPPd7cRmh0qIZZu5oE=";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# missing optional nuts package
|
|
"falcon/bench/nuts/nuts/tests/test_functional.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An unladen web framework for building APIs and app backends";
|
|
homepage = "https://falconframework.org/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ desiderius ];
|
|
};
|
|
|
|
}
|