31 buildPythonPackage rec {
35 disabled = pythonOlder "3.5";
37 src = fetchFromGitHub {
40 rev = "refs/tags/${version}";
41 hash = "sha256-7719gOM8WQVjODwOSo7HpH3HMFFeCGQQYBKktBAevig=";
44 nativeBuildInputs = [ setuptools ] ++ lib.optionals (!isPyPy) [ cython ];
46 __darwinAllowLocalNetworking = true;
50 cp -R tests examples $TMPDIR
59 # https://github.com/falconry/falcon/blob/master/requirements/tests
78 ] ++ lib.optionals (pythonOlder "3.10") [ testtools ];
80 pytestFlagsArray = [ "tests" ];
84 # needs a running server
85 "tests/asgi/test_asgi_servers.py"
87 ++ lib.optionals (pythonAtLeast "3.12") [
88 # ModuleNotFoundError: No module named 'distutils'
89 "tests/asgi/test_cythonized_asgi.py"
93 description = "Unladen web framework for building APIs and app backends";
94 homepage = "https://falconframework.org/";
95 license = licenses.asl20;
96 maintainers = with maintainers; [ desiderius ];