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.7.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-EOUR6jqMdEYx07135h6xftCTBMQTrULPbd+kx3h+j+Y=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 propagatedBuildInputs = [ python-socks ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "websocket" ];
30
31 meta = with lib; {
32 description = "Websocket client for Python";
33 mainProgram = "wsdump";
34 homepage = "https://github.com/websocket-client/websocket-client";
35 changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog";
36 license = licenses.lgpl21Plus;
37 maintainers = with maintainers; [ fab ];
38 };
39}