Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 37 lines 707 B view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "aiohttp-wsgi"; 11 version = "0.8.2"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "etianen"; 16 repo = pname; 17 rev = version; 18 sha256 = "0wirn3xqxxgkpy5spicd7p1bkdnsrch61x2kcpdwpixmx961pq7x"; 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}