nixpkgs/pkgs/development/python-modules/ws4py/default.nix

27 lines
769 B
Nix
Raw Normal View History

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