1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "sseclient-py";
11 version = "1.8.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "mpetazzoni";
18 repo = "sseclient";
19 rev = "sseclient-py-${version}";
20 hash = "sha256-rNiJqR7/e+Rhi6kVBY8gZJZczqSUsyszotXkb4OKfWk=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "sseclient" ];
26
27 enabledTestPaths = [ "tests/unittests.py" ];
28
29 meta = with lib; {
30 description = "Pure-Python Server Side Events (SSE) client";
31 homepage = "https://github.com/mpetazzoni/sseclient";
32 changelog = "https://github.com/mpetazzoni/sseclient/releases/tag/sseclient-py-${version}";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ jamiemagee ];
35 };
36}