587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
55 lines
1,021 B
Nix
55 lines
1,021 B
Nix
{
|
|
lib,
|
|
anyio,
|
|
buildPythonPackage,
|
|
curio,
|
|
fetchFromGitHub,
|
|
hypothesis,
|
|
pytest,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
poetry-core,
|
|
sniffio,
|
|
trio,
|
|
trio-asyncio,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-aio";
|
|
version = "1.8.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "klen";
|
|
repo = "pytest-aio";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-MexIL9yFTzhkJ/61GgYoT54MWV8B0c1/CWkN5FVTvnw=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
dependencies = [
|
|
anyio
|
|
curio
|
|
hypothesis
|
|
sniffio
|
|
trio
|
|
trio-asyncio
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "pytest_aio" ];
|
|
|
|
meta = with lib; {
|
|
description = "Pytest plugin for aiohttp support";
|
|
homepage = "https://github.com/klen/pytest-aio";
|
|
changelog = "https://github.com/klen/pytest-aio/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|