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