2020-09-24 13:00:50 +01:00
|
|
|
{ buildPythonPackage, fetchFromGitHub, lib, python }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sseclient-py";
|
2021-09-23 03:01:59 +01:00
|
|
|
version = "1.7.2";
|
2020-09-24 13:00:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpetazzoni";
|
|
|
|
repo = "sseclient";
|
|
|
|
rev = "sseclient-py-${version}";
|
2021-09-23 03:01:59 +01:00
|
|
|
sha256 = "096spyv50jir81xiwkg9l88ycp1897d3443r6gi1by8nkp4chvix";
|
2020-09-24 13:00:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# based on tox.ini
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests/unittests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure-Python Server Side Events (SSE) client";
|
|
|
|
homepage = "https://github.com/mpetazzoni/sseclient";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|