anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / websocket-client / default.nix
blobdbaae49890b5ac7d74a23025574cf56576ccb947
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pytestCheckHook,
6   python-socks,
7   pythonOlder,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "websocket-client";
13   version = "1.8.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchPypi {
19     pname = "websocket_client";
20     inherit version;
21     hash = "sha256-Mjnfn0TaYy+WASRygF1AojKBqZECfOEdL0Wm8krEw9o=";
22   };
24   build-system = [ setuptools ];
26   optional-dependencies = {
27     optional = [
28       python-socks
29       # wsaccel is not available at the moment
30     ];
31   };
33   nativeCheckInputs = [ pytestCheckHook ];
35   pythonImportsCheck = [ "websocket" ];
37   meta = with lib; {
38     description = "Websocket client for Python";
39     homepage = "https://github.com/websocket-client/websocket-client";
40     changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog";
41     license = licenses.lgpl21Plus;
42     maintainers = with maintainers; [ fab ];
43     mainProgram = "wsdump";
44   };