1{
2 lib,
3 aiohttp,
4 apispec,
5 bottle,
6 buildPythonPackage,
7 fetchFromGitHub,
8 flit-core,
9 flask,
10 mock,
11 pytestCheckHook,
12 pythonOlder,
13 tornado,
14}:
15
16buildPythonPackage rec {
17 pname = "apispec-webframeworks";
18 version = "1.2.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.8";
22
23 src = fetchFromGitHub {
24 owner = "marshmallow-code";
25 repo = "apispec-webframeworks";
26 tag = version;
27 hash = "sha256-V4tdqcHfYRh9VoXUTPXM3SIOogJDJB14SLj5dSd7LzU=";
28 };
29
30 build-system = [ flit-core ];
31
32 dependencies = [ apispec ] ++ apispec.optional-dependencies.yaml;
33
34 nativeCheckInputs = [
35 aiohttp
36 bottle
37 flask
38 mock
39 pytestCheckHook
40 tornado
41 ];
42
43 pythonImportsCheck = [ "apispec_webframeworks" ];
44
45 meta = with lib; {
46 description = "Web framework plugins for apispec";
47 homepage = "https://github.com/marshmallow-code/apispec-webframeworks";
48 changelog = "https://github.com/marshmallow-code/apispec-webframeworks/blob/${version}/CHANGELOG.rst";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];
51 };
52}