92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
76 lines
1.3 KiB
Nix
76 lines
1.3 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aiohttp-jinja2
|
|
, aiohttp-remotes
|
|
, aiohttp-swagger
|
|
, buildPythonPackage
|
|
, clickclick
|
|
, decorator
|
|
, fetchFromGitHub
|
|
, flask
|
|
, inflection
|
|
, jsonschema
|
|
, openapi-spec-validator
|
|
, packaging
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, requests
|
|
, swagger-ui-bundle
|
|
, testfixtures
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "connexion";
|
|
version = "2.14.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spec-first";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8nWNFYW4DWAzIAsxgWPXOodlc2tuuGOktNo4N1G1oOc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
aiohttp-jinja2
|
|
aiohttp-swagger
|
|
clickclick
|
|
flask
|
|
inflection
|
|
jsonschema
|
|
openapi-spec-validator
|
|
packaging
|
|
pyyaml
|
|
requests
|
|
swagger-ui-bundle
|
|
];
|
|
|
|
checkInputs = [
|
|
aiohttp-remotes
|
|
decorator
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
testfixtures
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"connexion"
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_headers"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Swagger/OpenAPI First framework on top of Flask";
|
|
homepage = "https://github.com/spec-first/connexion";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
};
|
|
}
|