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