1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "aiohttp-wsgi";
12 version = "0.10.0";
13 format = "setuptools";
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "etianen";
18 repo = "aiohttp-wsgi";
19 rev = "v${version}";
20 hash = "sha256-3Q00FidZWV1KueuHyHKQf1PsDJGOaRW6v/kBy7lzD4Q=";
21 };
22
23 propagatedBuildInputs = [ aiohttp ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "aiohttp_wsgi" ];
28
29 meta = with lib; {
30 description = "WSGI adapter for aiohttp";
31 mainProgram = "aiohttp-wsgi-serve";
32 homepage = "https://github.com/etianen/aiohttp-wsgi";
33 license = with licenses; [ bsd3 ];
34 maintainers = with maintainers; [ fab ];
35 };
36}