Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 62 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, aiohttp, pytestCheckHook, pytest-aiohttp, setuptools,}:
buildPythonPackage rec { pname = "aiohttp-cors"; version = "0.8.1"; pyproject = true;
src = fetchFromGitHub { owner = "aio-libs"; repo = "aiohttp-cors"; tag = "v${version}"; hash = "sha256-AbMuUeCNM8+oZj/hutG3zxHOwYN8uZlLFBeYTlu1fh4="; };
patches = [ # https://github.com/aio-libs/aiohttp-cors/pull/563 (fetchpatch { name = "replace-deprecated-asyncio.iscoroutinefunction-with-its-counterpart-from-inspect.patch"; url = "https://github.com/aio-libs/aiohttp-cors/commit/efafc0f780a494377910f2328057f83e95f8bf74.patch"; hash = "sha256-BvE5qqAx83+084khkHt4zjXgR7Bu/ceqMOOh/6fe5TA="; }) ];
build-system = [ setuptools ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "aiohttp_cors" ];
nativeCheckInputs = [ pytestCheckHook pytest-aiohttp ];
disabledTests = [ # async def functions are not natively supported and have been skipped. "test_main" "test_defaults" "test_raises_forbidden_when_config_not_found" "test_raises_when_handler_not_extend" ];
# interactive browser tests using selenium disabledTestPaths = [ "tests/integration" ];
meta = { changelog = "https://github.com/aio-libs/aiohttp-cors/blob/${src.tag}/CHANGES.rst"; description = "CORS support for aiohttp"; homepage = "https://github.com/aio-libs/aiohttp-cors"; license = lib.licenses.asl20; maintainers = [ ]; };}