2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, aiohttp
|
|
|
|
, aiohttp-jinja2
|
2021-05-20 23:08:51 +00:00
|
|
|
, aiohttp-remotes
|
|
|
|
, aiohttp-swagger
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, clickclick
|
|
|
|
, decorator
|
2021-05-20 23:08:51 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, flask
|
|
|
|
, inflection
|
|
|
|
, jsonschema
|
|
|
|
, openapi-spec-validator
|
|
|
|
, pytest-aiohttp
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, swagger-ui-bundle
|
|
|
|
, testfixtures
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "connexion";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "2.14.0";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-04-27 09:35:20 +00:00
|
|
|
owner = "spec-first";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-06-26 10:26:21 +00:00
|
|
|
hash = "sha256-5+OZvJG68jZZsfOuOqsCUSPLV6vvjk9msJzjsCwo0jw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
aiohttp
|
|
|
|
aiohttp-jinja2
|
|
|
|
aiohttp-swagger
|
2020-04-24 23:36:52 +00:00
|
|
|
clickclick
|
2021-05-20 23:08:51 +00:00
|
|
|
flask
|
|
|
|
inflection
|
2020-04-24 23:36:52 +00:00
|
|
|
jsonschema
|
2021-05-20 23:08:51 +00:00
|
|
|
openapi-spec-validator
|
2020-04-24 23:36:52 +00:00
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
swagger-ui-bundle
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
checkInputs = [
|
|
|
|
aiohttp-remotes
|
|
|
|
decorator
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
testfixtures
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"connexion"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError
|
|
|
|
"test_headers"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Swagger/OpenAPI First framework on top of Flask";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/spec-first/connexion";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|