1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 setuptools-scm,
7 wheel,
8 aiohttp,
9 pytest,
10 pytest-asyncio,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "pytest-aiohttp";
16 version = "1.0.5";
17
18 format = "pyproject";
19
20 __darwinAllowLocalNetworking = true;
21
22 src = fetchFromGitHub {
23 owner = "aio-libs";
24 repo = "pytest-aiohttp";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-UACf0frMTOAgSsXQ0oqROHKR1zn4OfLPhd9MwBK002Y=";
27 };
28
29 nativeBuildInputs = [
30 setuptools
31 setuptools-scm
32 wheel
33 ];
34
35 buildInputs = [ pytest ];
36
37 propagatedBuildInputs = [
38 aiohttp
39 pytest-asyncio
40 ];
41
42 nativeCheckInputs = [ pytestCheckHook ];
43
44 meta = with lib; {
45 homepage = "https://github.com/aio-libs/pytest-aiohttp/";
46 changelog = "https://github.com/aio-libs/pytest-aiohttp/blob/${src.rev}/CHANGES.rst";
47 description = "Pytest plugin for aiohttp support";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ dotlambda ];
50 };
51}