1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 aiohttp,
7}:
8
9buildPythonPackage rec {
10 pname = "aiosseclient";
11 version = "0.1.8";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "ebraminio";
16 repo = "aiosseclient";
17 tag = version;
18 hash = "sha256-ynWqRQsCuog8myNleJDdp+omyujmNB1Ys7O6gU2AaUc=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ aiohttp ];
24
25 # Test requires network access
26 doCheck = false;
27
28 pythonImportsCheck = [ "aiosseclient" ];
29
30 meta = {
31 description = "Asynchronous Server Side Events (SSE) client";
32 homepage = "https://github.com/ebraminio/aiosseclient";
33 changelog = "https://github.com/ebraminio/aiosseclient/releases/tag/${src.tag}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}