Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.1 kB · 105 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106{ lib, stdenv, fetchFromGitHub, buildPythonPackage, pythonOlder,
# build-system poetry-core,
# dependencies asgiref, httpx, inflection, jsonschema, jinja2, python-multipart, pyyaml, requests, starlette, typing-extensions, werkzeug,
# optional-dependencies a2wsgi, flask, swagger-ui-bundle, uvicorn,
# tests pytest-aiohttp, pytestCheckHook, testfixtures,}:
buildPythonPackage rec { pname = "connexion"; version = "3.2.0"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "spec-first"; repo = "connexion"; tag = version; hash = "sha256-ruwpA2yd7FRME1FvYrZh0EOnhmQ26YVouXzpVD9ph6g="; };
build-system = [ poetry-core ];
dependencies = [ asgiref httpx inflection jsonschema jinja2 python-multipart pyyaml requests starlette typing-extensions werkzeug ];
optional-dependencies = { flask = [ a2wsgi flask ]; swagger-ui = [ swagger-ui-bundle ]; uvicorn = [ uvicorn ]; };
nativeCheckInputs = [ pytest-aiohttp pytestCheckHook testfixtures ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "connexion" ];
disabledTests = [ "test_build_example" "test_mock_resolver_no_example" "test_sort_apis_by_basepath" "test_sort_routes" # Tests require network access "test_remote_api" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # ImportError: Error while finding loader for '/private/tmp/nix-build-python3.12-connexion-3.1.0.drv-0/source' (<class 'ModuleNotFoundError'>: No module named '/private/tmp/nix-build-python3') "test_lifespan" ];
meta = { description = "Swagger/OpenAPI First framework on top of Flask"; homepage = "https://github.com/spec-first/connexion"; changelog = "https://github.com/spec-first/connexion/releases/tag/${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bot-wxt1221 ]; mainProgram = "connexion"; };}