1{ 2 aiohttp, 3 attrs, 4 buildPythonPackage, 5 fetchFromGitHub, 6 lib, 7 multidict, 8 pytest-aiohttp, 9 pytestCheckHook, 10 setuptools, 11 yarl, 12}: 13 14buildPythonPackage rec { 15 pname = "aiohttp-sse-client2"; 16 version = "0.3.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "compat-fork"; 21 repo = "aiohttp-sse-client"; 22 tag = version; 23 hash = "sha256-uF39gpOYzNotVVYQShUoiuvYAhSRex2T1NfuhgwSCR4="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace-fail "pytest-runner" "" 29 ''; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 aiohttp 35 attrs 36 multidict 37 yarl 38 ]; 39 40 pythonImportsCheck = [ "aiohttp_sse_client2" ]; 41 42 nativeCheckInputs = [ 43 pytest-aiohttp 44 pytestCheckHook 45 ]; 46 47 # tests access the internet 48 doCheck = false; 49 50 meta = { 51 changelog = "https://github.com/compat-fork/aiohttp-sse-client/blob/${src.rev}/README.rst#fork-changelog"; 52 description = "Server-Sent Event python client library based on aiohttp"; 53 homepage = "https://github.com/compat-fork/aiohttp-sse-client"; 54 license = lib.licenses.asl20; 55 maintainers = with lib.maintainers; [ dotlambda ]; 56 }; 57}