summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/aiohttp-wsgi/default.nix
blob: 5f8b796c10ef7f32ec64d00a09f35e6509ba671c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "aiohttp-wsgi";
  version = "0.10.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "etianen";
    repo = "aiohttp-wsgi";
    rev = "v${version}";
    hash = "sha256-3Q00FidZWV1KueuHyHKQf1PsDJGOaRW6v/kBy7lzD4Q=";
  };

  propagatedBuildInputs = [ aiohttp ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "aiohttp_wsgi" ];

  meta = {
    description = "WSGI adapter for aiohttp";
    mainProgram = "aiohttp-wsgi-serve";
    homepage = "https://github.com/etianen/aiohttp-wsgi";
    license = with lib.licenses; [ bsd3 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}