2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
anyio,
|
|
|
|
buildPythonPackage,
|
|
|
|
curio,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hypothesis,
|
|
|
|
pytest,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
poetry-core,
|
|
|
|
sniffio,
|
|
|
|
trio,
|
|
|
|
trio-asyncio,
|
2021-12-19 01:06:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-aio";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.8.1";
|
|
|
|
pyproject = true;
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "klen";
|
|
|
|
repo = "pytest-aio";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-MexIL9yFTzhkJ/61GgYoT54MWV8B0c1/CWkN5FVTvnw=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-12-30 13:39:12 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [ pytest ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-12-30 13:39:12 +00:00
|
|
|
anyio
|
|
|
|
curio
|
|
|
|
hypothesis
|
|
|
|
sniffio
|
|
|
|
trio
|
|
|
|
trio-asyncio
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pytest_aio" ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin for aiohttp support";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/klen/pytest-aio";
|
|
|
|
changelog = "https://github.com/klen/pytest-aio/blob/${version}/CHANGELOG.md";
|
2021-12-19 01:06:50 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|