c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
57 lines
930 B
Nix
57 lines
930 B
Nix
{ lib
|
|
, anyio
|
|
, buildPythonPackage
|
|
, curio
|
|
, fetchFromGitHub
|
|
, hypothesis
|
|
, pytest
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, sniffio
|
|
, trio
|
|
, trio-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-aio";
|
|
version = "1.5.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "klen";
|
|
repo = "pytest-aio";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-BIVorMRWyboKFZCiELoBh/1oxSpdV263zfLce1fNVhU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/addopts/d' setup.cfg
|
|
'';
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
anyio
|
|
curio
|
|
hypothesis
|
|
pytestCheckHook
|
|
sniffio
|
|
trio
|
|
trio-asyncio
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pytest_aio"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/klen/pytest-aio";
|
|
description = "Pytest plugin for aiohttp support";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|