2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, requests, six
|
2020-06-15 15:56:04 +00:00
|
|
|
, backports_unittest-mock, pytestCheckHook, pytestrunner }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sseclient";
|
2020-06-02 18:00:15 +00:00
|
|
|
version = "0.0.26";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-02 18:00:15 +00:00
|
|
|
sha256 = "33f45ab71bb6369025d6a1014e15f12774f7ea25b7e80eeb00bd73668d5fefad";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
checkInputs = [ backports_unittest-mock pytestCheckHook pytestrunner ];
|
|
|
|
|
|
|
|
# tries to open connection to wikipedia
|
|
|
|
disabledTests = [ "event_stream" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Client library for reading Server Sent Event streams";
|
|
|
|
homepage = "https://github.com/btubbs/sseclient";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|