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