2020-10-17 17:48:46 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27
|
2018-02-28 01:43:27 +00:00
|
|
|
, requests, six
|
2020-06-12 21:49:40 +01:00
|
|
|
, backports_unittest-mock, pytestCheckHook, pytestrunner }:
|
2018-02-28 01:43:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sseclient";
|
2020-10-17 01:51:14 +01:00
|
|
|
version = "0.0.27";
|
2018-02-28 01:43:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-17 01:51:14 +01:00
|
|
|
sha256 = "b2fe534dcb33b1d3faad13d60c5a7c718e28f85987f2a034ecf5ec279918c11c";
|
2018-02-28 01:43:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
|
2020-10-17 17:48:46 +01:00
|
|
|
# some tests use python3 strings
|
|
|
|
doCheck = !isPy27;
|
2020-06-12 21:49:40 +01:00
|
|
|
checkInputs = [ backports_unittest-mock pytestCheckHook pytestrunner ];
|
|
|
|
|
|
|
|
# tries to open connection to wikipedia
|
|
|
|
disabledTests = [ "event_stream" ];
|
2018-02-28 01:43:27 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Client library for reading Server Sent Event streams";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/btubbs/sseclient";
|
2018-02-28 01:43:27 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|