Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
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=";
|
|
};
|
|
|
|
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 = with lib; {
|
|
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 = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|