1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 python-socks,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "websocket-client";
13 version = "1.8.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 pname = "websocket_client";
20 inherit version;
21 hash = "sha256-Mjnfn0TaYy+WASRygF1AojKBqZECfOEdL0Wm8krEw9o=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ python-socks ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "websocket" ];
31
32 meta = with lib; {
33 description = "Websocket client for Python";
34 mainProgram = "wsdump";
35 homepage = "https://github.com/websocket-client/websocket-client";
36 changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog";
37 license = licenses.lgpl21Plus;
38 maintainers = with maintainers; [ fab ];
39 };
40}