1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 wheel,
7 aiohttp,
8 attrs,
9 multidict,
10 yarl,
11}:
12
13buildPythonPackage rec {
14 pname = "aiohttp-sse-client";
15 version = "0.2.1";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-UATiknFiSvWGFY3HFmywaHp6WZeqtbgI9LU0AOG3Ljs=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace-fail "pytest-runner" ""
26 '';
27
28 build-system = [
29 setuptools
30 wheel
31 ];
32
33 dependencies = [
34 aiohttp
35 attrs
36 multidict
37 yarl
38 ];
39
40 pythonImportsCheck = [
41 "aiohttp_sse_client"
42 ];
43
44 meta = {
45 description = "Server-Sent Event python client base on aiohttp";
46 homepage = "https://pypi.org/project/aiohttp-sse-client/";
47 license = lib.licenses.asl20;
48 maintainers = with lib.maintainers; [ kranzes ];
49 };
50}