1{ lib, buildPythonPackage, fetchPypi, isPy27
2, six
3, backports_ssl_match_hostname
4}:
5
6buildPythonPackage rec {
7 version = "0.56.0";
8 pname = "websocket_client";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "0fpxjyr74klnyis3yf6m54askl0h5dchxcwbfjsq92xng0455m8z";
13 };
14
15 propagatedBuildInputs = [
16 six
17 ] ++ lib.optional isPy27 backports_ssl_match_hostname;
18
19 meta = with lib; {
20 description = "Websocket client for python";
21 homepage = "https://github.com/websocket-client/websocket-client";
22 license = licenses.bsd3;
23 maintainers = with maintainers; [ ];
24 };
25}