blob: 664c8db18becea0c5e4f4a04042fd677d8ec7f35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
python-socks,
setuptools,
}:
buildPythonPackage rec {
pname = "websocket-client";
version = "1.8.0";
pyproject = true;
src = fetchPypi {
pname = "websocket_client";
inherit version;
hash = "sha256-Mjnfn0TaYy+WASRygF1AojKBqZECfOEdL0Wm8krEw9o=";
};
build-system = [ setuptools ];
optional-dependencies = {
optional = [
python-socks
# wsaccel is not available at the moment
];
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "websocket" ];
meta = {
description = "Websocket client for Python";
homepage = "https://github.com/websocket-client/websocket-client";
changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "wsdump";
};
}
|