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