19 , openapi-spec-validator
33 buildPythonPackage rec {
37 # we're fetching from GitHub because tests weren't distributed on PyPi
38 src = fetchFromGitHub {
42 sha256 = "1b9q027wrks0afl7l3a1wxymz3aick26b9fq2m07pc5wb9np0vvg";
54 ++ lib.optionals isPy3k [ aiohttp aiohttp-jinja2 aiohttp-swagger ujson pytest-aiohttp ]
55 ++ lib.optional (pythonOlder "3.7") glibcLocales
57 propagatedBuildInputs = [
64 openapi-spec-validator
68 ++ lib.optional (pythonOlder "3.4") pathlib
69 ++ lib.optional (pythonOlder "3.6") typing
70 ++ lib.optionals isPy3k [ aiohttp aiohttp-jinja2 aiohttp-swagger ujson ]
73 preConfigure = lib.optional (pythonOlder "3.7") ''
74 export LANG=en_US.UTF-8
78 substituteInPlace setup.py --replace "'aiohttp>=2.3.10,<3.5.2'" "'aiohttp>=2.3.10'"
81 checkPhase = if isPy3k then ''
82 pytest -k "not test_app_get_root_path and \
83 not test_verify_oauth_scopes_remote and \
84 not test_verify_oauth_scopes_local and \
85 not test_run_with_aiohttp_not_installed"''
86 else "pytest --ignore=tests/aiohttp";
89 description = "Swagger/OpenAPI First framework on top of Flask";
90 homepage = "https://github.com/zalando/connexion/";
91 license = licenses.asl20;
92 maintainers = with maintainers; [ elohmeier ];