2017-09-15 23:42:35 +00:00
|
|
|
{lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, typing, aiohttp }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp-cors";
|
2017-12-23 00:14:06 +00:00
|
|
|
version = "0.6.0";
|
2017-09-15 23:42:35 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-23 00:14:06 +00:00
|
|
|
sha256 = "1r0mb4dw0dc1lpi54dk5vxqs06nyhvagp76lyrvk7rd94z5mjkd4";
|
2017-09-15 23:42:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiohttp ]
|
|
|
|
++ lib.optional (pythonOlder "3.5") typing;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CORS support for aiohttp";
|
|
|
|
homepage = "https://github.com/aio-libs/aiohttp-cors";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|