1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiohttp 5, pytestCheckHook 6, pytest-asyncio 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "aiohttp-basicauth"; 12 version = "1.0.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "romis2012"; 19 repo = "aiohttp-basicauth"; 20 rev = "v${version}"; 21 hash = "sha256-UaRzauHmBHYwXFqRwDn1py79BScqq5j5SWALM4dQBP4="; 22 }; 23 24 propagatedBuildInputs = [ 25 aiohttp 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 pytest-asyncio 31 ]; 32 33 pythonImportsCheck = [ "aiohttp_basicauth" ]; 34 35 meta = with lib; { 36 description = "HTTP basic authentication middleware for aiohttp 3.0"; 37 homepage = "https://github.com/romis2012/aiohttp-basicauth"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ mbalatsko ]; 40 }; 41}