1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, aiohttp
5, flake8
6, jinja2
7, pytestCheckHook
8, pytest-aiohttp
9, pyyaml
10}:
11
12buildPythonPackage rec {
13 pname = "aiohttp-swagger";
14 version = "1.0.5";
15
16 src = fetchFromGitHub {
17 owner = "cr0hn";
18 repo = pname;
19 rev = "5a59e86f8c5672d2cc97dd35dc730c2f809d95ce"; # corresponds to 1.0.5 on PyPi, no tag on GitHub
20 sha256 = "1vpfk5b3f7s9qzr2q48g776f39xzqppjwm57scfzqqmbldkk5nv7";
21 };
22
23 propagatedBuildInputs = [ aiohttp jinja2 pyyaml ];
24
25 checkInputs = [ flake8 pytestCheckHook pytest-aiohttp ];
26
27 meta = with lib; {
28 description = "Swagger API Documentation builder for aiohttp";
29 homepage = "https://github.com/cr0hn/aiohttp-swagger";
30 license = licenses.mit;
31 maintainers = with maintainers; [ elohmeier ];
32 };
33}