2018-02-26 12:04:46 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, six }:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "websocket_client";
|
2018-06-12 17:47:08 +01:00
|
|
|
version = "0.48.0";
|
2018-02-26 12:04:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2018-06-12 17:47:08 +01:00
|
|
|
sha256 = "18f1170e6a1b5463986739d9fd45c4308b0d025c1b2f9b88788d8f69e8a5eb4a";
|
2018-02-26 12:04:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
# ssl.match_hostname exists in python2.7 version maintained in nixpkgs,
|
|
|
|
# the dependency is not necessary.
|
|
|
|
sed -e "s/\['backports.ssl_match_hostname'\]/\[\]/" -i setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/liris/websocket-client;
|
|
|
|
description = "Websocket client for python";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|