evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pytest-aio / default.nix
blobb76cd96230d21b3f2ab745bbed199419f27378e1
2   lib,
3   anyio,
4   buildPythonPackage,
5   curio-compat,
6   fetchFromGitHub,
7   hypothesis,
8   pytest,
9   pytestCheckHook,
10   pythonOlder,
11   poetry-core,
12   trio,
13   trio-asyncio,
14   uvloop,
17 buildPythonPackage rec {
18   pname = "pytest-aio";
19   version = "1.9.0";
20   pyproject = true;
22   disabled = pythonOlder "3.9";
24   src = fetchFromGitHub {
25     owner = "klen";
26     repo = "pytest-aio";
27     rev = "refs/tags/${version}";
28     hash = "sha256-6RxYn8/HAvXv1AEgSIEOLiaBkGgTcqQhWK+xbtxgj/o=";
29   };
31   build-system = [ poetry-core ];
33   buildInputs = [ pytest ];
35   optional-dependencies = {
36     curio = [ curio-compat ];
37     trio = [ trio ];
38     uvloop = [ uvloop ];
39   };
41   nativeCheckInputs = [
42     anyio
43     hypothesis
44     pytestCheckHook
45     trio-asyncio
46   ] ++ lib.flatten (lib.attrValues optional-dependencies);
48   pythonImportsCheck = [ "pytest_aio" ];
50   meta = with lib; {
51     description = "Pytest plugin for aiohttp support";
52     homepage = "https://github.com/klen/pytest-aio";
53     changelog = "https://github.com/klen/pytest-aio/blob/${version}/CHANGELOG.md";
54     license = licenses.mit;
55     maintainers = with maintainers; [ fab ];
56   };