pythonPackages.websocket_client: 0.54.0 -> 0.56.0 and fix directory

This commit is contained in:
Jonathan Ringer 2019-07-03 19:49:56 -07:00
parent 01f11297e4
commit febf826839
3 changed files with 26 additions and 25 deletions

View File

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, six
, backports_ssl_match_hostname
}:
buildPythonPackage rec {
version = "0.56.0";
pname = "websocket_client";
src = fetchPypi {
inherit pname version;
sha256 = "0fpxjyr74klnyis3yf6m54askl0h5dchxcwbfjsq92xng0455m8z";
};
propagatedBuildInputs = [
six
] ++ lib.optional isPy27 backports_ssl_match_hostname;
meta = with lib; {
description = "Websocket client for python";
homepage = "https://github.com/websocket-client/websocket-client";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}

View File

@ -1,24 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, six }:
buildPythonPackage rec {
pname = "websocket_client";
version = "0.54.0";
src = fetchPypi {
inherit version pname;
sha256 = "e51562c91ddb8148e791f0155fdb01325d99bb52c4cdbb291aee7a3563fd0849";
};
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;
};
}

View File

@ -5089,7 +5089,7 @@ in {
larch = callPackage ../development/python-modules/larch { };
websocket_client = callPackage ../development/python-modules/websockets_client { };
websocket_client = callPackage ../development/python-modules/websocket_client { };
webhelpers = callPackage ../development/python-modules/webhelpers { };