Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / websocket-client / default.nix
blob1903c6cb64669713bf50bfae1152b5ea88932ff9
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , python-socks
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "websocket-client";
12   version = "1.7.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-EOUR6jqMdEYx07135h6xftCTBMQTrULPbd+kx3h+j+Y=";
20   };
22   nativeBuildInputs = [
23     setuptools
24   ];
26   propagatedBuildInputs = [
27     python-socks
28    ];
30   nativeCheckInputs = [
31     pytestCheckHook
32   ];
34   pythonImportsCheck = [
35     "websocket"
36   ];
38   meta = with lib; {
39     description = "Websocket client for Python";
40     mainProgram = "wsdump";
41     homepage = "https://github.com/websocket-client/websocket-client";
42     changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog";
43     license = licenses.lgpl21Plus;
44     maintainers = with maintainers; [ fab ];
45   };