2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests, six
|
2021-07-24 12:14:16 +00:00
|
|
|
, backports_unittest-mock, pytestCheckHook, pytest-runner }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sseclient";
|
2020-10-19 00:13:06 +00:00
|
|
|
version = "0.0.27";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-19 00:13:06 +00:00
|
|
|
sha256 = "b2fe534dcb33b1d3faad13d60c5a7c718e28f85987f2a034ecf5ec279918c11c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
|
2020-10-19 00:13:06 +00:00
|
|
|
# some tests use python3 strings
|
|
|
|
doCheck = !isPy27;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ backports_unittest-mock pytestCheckHook pytest-runner ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
# tries to open connection to wikipedia
|
|
|
|
disabledTests = [ "event_stream" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Client library for reading Server Sent Event streams";
|
|
|
|
homepage = "https://github.com/btubbs/sseclient";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|