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-02-10 20:34:41 +00:00
|
|
|
version = "2.11.1";
|
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 {
|
|
|
|
owner = "zalando";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-m/r09VNp/AMssOJH9RKMhPcObGHl9uIAoS1PwrjpKaE=";
|
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
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "PyYAML>=5.1,<6" "PyYAML>=5.1" \
|
|
|
|
--replace "jsonschema>=2.5.1,<4" "jsonschema>=2.5.1"
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# We have a later PyYAML release
|
|
|
|
"test_swagger_yaml"
|
2021-08-18 13:19:15 +00:00
|
|
|
];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"connexion"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Swagger/OpenAPI First framework on top of Flask";
|
|
|
|
homepage = "https://github.com/zalando/connexion/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|