@@ -1,89 +1,60 @@
1−{ buildPythonPackage
2−, fetchFromGitHub
3−, isPy3k
4−, glibcLocales
5−, lib
6−, pythonOlder
7−
1+{ lib
82, aiohttp
9−, aiohttp-swagger
103, aiohttp-jinja2
4+, aiohttp-remotes
5+, aiohttp-swagger
6+, buildPythonPackage
117, clickclick
128, decorator
13−, flake8
9+, fetchFromGitHub
1410, flask
15−, gevent
1611, inflection
1712, jsonschema
18−, mock
1913, openapi-spec-validator
20−, pathlib
21−, pytest
2214, pytest-aiohttp
23−, pytestcov
15+, pytestCheckHook
16+, pythonOlder
2417, pyyaml
2518, requests
26−, six
2719, swagger-ui-bundle
2820, testfixtures
29−, typing ? null
30−, ujson
3121}:
3222
3323buildPythonPackage rec {
3424 pname = "connexion";
35− version = "2.4.0";
25+ version = "2.7.0";
26+ disabled = pythonOlder "3.6";
3627
37− # we're fetching from GitHub because tests weren't distributed on PyPi
3828 src = fetchFromGitHub {
3929 owner = "zalando";
4030 repo = pname;
4131 rev = version;
42− sha256 = "1b9q027wrks0afl7l3a1wxymz3aick26b9fq2m07pc5wb9np0vvg";
32+ sha256 = "15iflq5403diwda6n6qrpq67wkdcvl3vs0gsg0fapxqnq3a2m7jj";
4333 };
4434
45− checkInputs = [
46− decorator
47− mock
48− pytest
49− pytestcov
50− testfixtures
51− flask
52− swagger-ui-bundle
53− ]
54− ++ lib.optionals isPy3k [ aiohttp aiohttp-jinja2 aiohttp-swagger ujson pytest-aiohttp ]
55− ++ lib.optional (pythonOlder "3.7") glibcLocales
56− ;
5735 propagatedBuildInputs = [
36+ aiohttp
37+ aiohttp-jinja2
38+ aiohttp-swagger
5839 clickclick
40+ flask
41+ inflection
5942 jsonschema
43+ openapi-spec-validator
6044 pyyaml
6145 requests
62− six
63− inflection
64− openapi-spec-validator
6546 swagger-ui-bundle
66− flask
67− ]
68− ++ lib.optional (pythonOlder "3.4") pathlib
69− ++ lib.optional (pythonOlder "3.6") typing
70− ++ lib.optionals isPy3k [ aiohttp aiohttp-jinja2 aiohttp-swagger ujson ]
71− ;
72−
73− preConfigure = lib.optional (pythonOlder "3.7") ''
74− export LANG=en_US.UTF-8
75− '';
47+ ];
7648
77− postPatch = ''
78− substituteInPlace setup.py --replace "'aiohttp>=2.3.10,<3.5.2'" "'aiohttp>=2.3.10'"
79− '';
49+ checkInputs = [
50+ aiohttp-remotes
51+ decorator
52+ pytest-aiohttp
53+ pytestCheckHook
54+ testfixtures
55+ ];
8056
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";
57+ pythonImportsCheck = [ "connexion" ];
8758
8859 meta = with lib; {
8960 description = "Swagger/OpenAPI First framework on top of Flask";