1{ buildPythonPackage, fetchFromGitHub, lib, python }:
2
3buildPythonPackage rec {
4 pname = "sseclient-py";
5 version = "1.7.2";
6
7 src = fetchFromGitHub {
8 owner = "mpetazzoni";
9 repo = "sseclient";
10 rev = "sseclient-py-${version}";
11 sha256 = "096spyv50jir81xiwkg9l88ycp1897d3443r6gi1by8nkp4chvix";
12 };
13
14 # based on tox.ini
15 checkPhase = ''
16 ${python.interpreter} tests/unittests.py
17 '';
18
19 meta = with lib; {
20 description = "Pure-Python Server Side Events (SSE) client";
21 homepage = "https://github.com/mpetazzoni/sseclient";
22 license = licenses.asl20;
23 maintainers = with maintainers; [ jamiemagee ];
24 };
25}