2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
2021-12-30 13:39:12 +00:00
|
|
|
, anyio
|
2021-12-19 01:06:50 +00:00
|
|
|
, buildPythonPackage
|
2021-12-30 13:39:12 +00:00
|
|
|
, curio
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hypothesis
|
2021-12-19 01:06:50 +00:00
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-12-30 13:39:12 +00:00
|
|
|
, sniffio
|
|
|
|
, trio
|
|
|
|
, trio-asyncio
|
2021-12-19 01:06:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-aio";
|
|
|
|
version = "1.4.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "klen";
|
|
|
|
repo = "pytest-aio";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "pLH0yXe/KS9ohI8+hWSprP1OA3Qjki2BPqeApMPMGDs=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/addopts/d' setup.cfg
|
|
|
|
'';
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-12-30 13:39:12 +00:00
|
|
|
anyio
|
|
|
|
curio
|
|
|
|
hypothesis
|
2021-12-19 01:06:50 +00:00
|
|
|
pytestCheckHook
|
2021-12-30 13:39:12 +00:00
|
|
|
sniffio
|
|
|
|
trio
|
|
|
|
trio-asyncio
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|