depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-aio/default.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

57 lines
904 B
Nix

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