python3Packages.falcon: enable tests

This commit is contained in:
Martin Weinelt 2021-10-10 00:52:30 +02:00
parent c9159fb22b
commit 605e82f4a8

View File

@ -1,28 +1,53 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, coverage , pythonOlder
, ddt , aiofiles
, nose , cbor2
, httpx
, msgpack
, pecan
, pytest-asyncio
, pytestCheckHook
, pyyaml , pyyaml
, requests , requests
, testtools , testtools
, websockets
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "falcon"; pname = "falcon";
version = "3.0.1"; version = "3.0.1";
format = "pyproject";
disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-xB2E2zJYgahw6LcSnV7P2XL6QyPPd7cRmh0qIZZu5oE="; sha256 = "sha256-xB2E2zJYgahw6LcSnV7P2XL6QyPPd7cRmh0qIZZu5oE=";
}; };
checkInputs = [coverage ddt nose pyyaml requests testtools]; checkInputs = [
aiofiles
cbor2
httpx
msgpack
pecan
pytest-asyncio
pytestCheckHook
pyyaml
requests
testtools
websockets
];
# The travis build fails since the migration from multiprocessing to threading for hosting the API under test. disabledTestPaths = [
# OSError: [Errno 98] Address already in use # missing optional nuts package
doCheck = false; "falcon/bench/nuts/nuts/tests/test_functional.py"
# missing optional mujson package
"tests/test_media_handlers.py"
# tries to run uvicorn binary and doesn't find it
"tests/asgi/test_asgi_servers.py"
];
meta = with lib; { meta = with lib; {
description = "An unladen web framework for building APIs and app backends"; description = "An unladen web framework for building APIs and app backends";