summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiohttp/cors.nix
blob: 00198cd27cffaa4247d8baa86ec8ccb17d49992a (plain) (blame)
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
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, typing, aiohttp
}:

buildPythonPackage rec {
  pname = "aiohttp-cors";
  version = "0.7.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0pczn54bqd32v8zhfbjfybiza6xh1szwxy6as577dn8g23bwcfad";
  };

  disabled = pythonOlder "3.5";

  propagatedBuildInputs = [ aiohttp ]
  ++ lib.optional (pythonOlder "3.5") typing;

  # Requires network access
  doCheck = false;

  meta = with lib; {
    description = "CORS support for aiohttp";
    homepage = "https://github.com/aio-libs/aiohttp-cors";
    license = licenses.asl20;
    maintainers = with maintainers; [ primeos ];
  };
}