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