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
|
2021-08-18 13:19:15 +00:00
|
|
|
, fetchpatch
|
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";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "2.9.0";
|
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;
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "13smcg2w24zr2sv1968g9p9m6f18nqx688c96qdlmldnszgzf5ik";
|
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
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
patches = [
|
|
|
|
# No minor release for later versions, https://github.com/zalando/connexion/pull/1402
|
|
|
|
(fetchpatch {
|
|
|
|
name = "allow-later-flask-and-werkzeug-releases.patch";
|
|
|
|
url = "https://github.com/zalando/connexion/commit/4a225d554d915fca17829652b7cb8fe119e14b37.patch";
|
|
|
|
sha256 = "0dys6ymvicpqa3p8269m4yv6nfp58prq3fk1gcx1z61h9kv84g1k";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +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 ];
|
|
|
|
};
|
|
|
|
}
|