1{ lib, buildPythonPackage, fetchPypi, isPy27 2, requests, six 3, backports_unittest-mock, pytestCheckHook, pytest-runner }: 4 5buildPythonPackage rec { 6 pname = "sseclient"; 7 version = "0.0.27"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "b2fe534dcb33b1d3faad13d60c5a7c718e28f85987f2a034ecf5ec279918c11c"; 12 }; 13 14 propagatedBuildInputs = [ requests six ]; 15 16 # some tests use python3 strings 17 doCheck = !isPy27; 18 checkInputs = [ backports_unittest-mock pytestCheckHook pytest-runner ]; 19 20 # tries to open connection to wikipedia 21 disabledTests = [ "event_stream" ]; 22 23 meta = with lib; { 24 description = "Client library for reading Server Sent Event streams"; 25 homepage = "https://github.com/btubbs/sseclient"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ peterhoeg ]; 28 }; 29}