nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, aiohttp
3, aiohttp-jinja2
4, aiohttp-remotes
5, aiohttp-swagger
6, buildPythonPackage
7, clickclick
8, decorator
9, fetchFromGitHub
10, flask
11, inflection
12, jsonschema
13, openapi-spec-validator
14, pytest-aiohttp
15, pytestCheckHook
16, pythonOlder
17, pyyaml
18, requests
19, swagger-ui-bundle
20, testfixtures
21}:
22
23buildPythonPackage rec {
24 pname = "connexion";
25 version = "2.13.1";
26 format = "setuptools";
27
28 disabled = pythonOlder "3.6";
29
30 src = fetchFromGitHub {
31 owner = "spec-first";
32 repo = pname;
33 rev = "refs/tags/${version}";
34 hash = "sha256-nWhrb2oyBue/Q/dAdSgk3K/JXdgLg1xAEbOtCTRYs/M=";
35 };
36
37 propagatedBuildInputs = [
38 aiohttp
39 aiohttp-jinja2
40 aiohttp-swagger
41 clickclick
42 flask
43 inflection
44 jsonschema
45 openapi-spec-validator
46 pyyaml
47 requests
48 swagger-ui-bundle
49 ];
50
51 checkInputs = [
52 aiohttp-remotes
53 decorator
54 pytest-aiohttp
55 pytestCheckHook
56 testfixtures
57 ];
58
59 pythonImportsCheck = [
60 "connexion"
61 ];
62
63 disabledTests = [
64 # AssertionError
65 "test_headers"
66 ];
67
68 meta = with lib; {
69 description = "Swagger/OpenAPI First framework on top of Flask";
70 homepage = "https://github.com/spec-first/connexion";
71 license = licenses.asl20;
72 maintainers = with maintainers; [ elohmeier ];
73 };
74}