1{ lib
2, aiohttp
3, apispec
4, buildPythonPackage
5, callPackage
6, fetchFromGitHub
7, fetchPypi
8, jinja2
9, packaging
10, pytest-aiohttp
11, pytestCheckHook
12, pythonOlder
13, webargs
14}:
15
16buildPythonPackage rec {
17 pname = "aiohttp-apispec";
18 version = "3.0.0b2";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.6";
22
23 src = fetchFromGitHub {
24 owner = "maximdanilchenko";
25 repo = pname;
26 rev = "v${version}";
27 hash = "sha256-C+/M25oCLTNGGEUj2EyXn3UjcvPvDYFmmUW8IOoF1uU=";
28 };
29
30 propagatedBuildInputs = [
31 aiohttp
32 apispec
33 jinja2
34 packaging
35 webargs
36 ];
37
38 nativeCheckInputs = [
39 pytest-aiohttp
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [
44 "aiohttp_apispec"
45 ];
46
47 meta = with lib; {
48 description = "Build and document REST APIs with aiohttp and apispec";
49 homepage = "https://github.com/maximdanilchenko/aiohttp-apispec/";
50 license = licenses.mit;
51 maintainers = with maintainers; [ viric ];
52 };
53}