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