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