1{
2 lib,
3 buildPythonPackage,
4 cherrypy,
5 fetchPypi,
6 gevent,
7 git,
8 mock,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12 tornado,
13}:
14
15buildPythonPackage rec {
16 pname = "ws4py";
17 version = "0.6.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-n4exm3c/CgdEo486+jaoAyht0xl/C7Ndm3UpPscALRk=";
25 };
26
27 nativeBuildInputs = [ setuptools ];
28
29 propagatedBuildInputs = [
30 cherrypy
31 gevent
32 tornado
33 ];
34
35 nativeCheckInputs = [
36 git
37 mock
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "ws4py" ];
42
43 meta = with lib; {
44 description = "WebSocket package for Python";
45 homepage = "https://ws4py.readthedocs.org";
46 changelog = "https://github.com/Lawouach/WebSocket-for-Python/blob/${version}/CHANGELOG.md";
47 license = licenses.bsd3;
48 maintainers = [ ];
49 };
50}