2017-09-14 05:29:39 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, git, asyncio
|
|
|
|
, cherrypy, gevent, tornado }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "ws4py";
|
|
|
|
version = "0.4.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0zr3254ky6r7q15l3dhdczfa8i723055zdkqssjifsgcwvirriks";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock git ];
|
|
|
|
propagatedBuildInputs = [ asyncio cherrypy gevent tornado ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2017-12-01 04:11:03 +00:00
|
|
|
pytest -k 'not test_timeout_when_no_registered_fds and not test_mainloop_can_be_stopped_when_no_websocket_were_registered'
|
2017-09-14 05:29:39 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://ws4py.readthedocs.org;
|
|
|
|
description = "A WebSocket package for Python";
|
|
|
|
maintainers = with maintainers; [ rickynils ];
|
|
|
|
};
|
|
|
|
}
|