2018-07-21 02:44:44 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
2018-03-07 22:53:54 +01:00
|
|
|
, typing, aiohttp
|
|
|
|
}:
|
2017-09-16 01:42:35 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp-cors";
|
2018-03-07 22:53:54 +01:00
|
|
|
version = "0.7.0";
|
2018-01-23 17:30:09 +01:00
|
|
|
|
2017-09-16 01:42:35 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-03-07 22:53:54 +01:00
|
|
|
sha256 = "0pczn54bqd32v8zhfbjfybiza6xh1szwxy6as577dn8g23bwcfad";
|
2017-09-16 01:42:35 +02:00
|
|
|
};
|
|
|
|
|
2018-03-07 22:53:54 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
2017-09-16 01:42:35 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiohttp ]
|
|
|
|
++ lib.optional (pythonOlder "3.5") typing;
|
|
|
|
|
2018-03-07 22:53:54 +01:00
|
|
|
# Requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-09-16 01:42:35 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "CORS support for aiohttp";
|
|
|
|
homepage = "https://github.com/aio-libs/aiohttp-cors";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|