Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aiohttp-basicauth / default.nix
blobb7ce89c134768e7ed297ac49cd9f27dac7d94ac2
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , aiohttp
5 , pytestCheckHook
6 , pytest-asyncio
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "aiohttp-basicauth";
12   version = "1.0.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "romis2012";
19     repo = "aiohttp-basicauth";
20     rev = "v${version}";
21     hash = "sha256-UaRzauHmBHYwXFqRwDn1py79BScqq5j5SWALM4dQBP4=";
22   };
24   propagatedBuildInputs = [
25     aiohttp
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30     pytest-asyncio
31   ];
33   pythonImportsCheck = [ "aiohttp_basicauth" ];
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   };