git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.websocket_client: 0.54.0 -> 0.56.0 and fix directory
commitfebf826839e121a006aba4aacd171a140bef3b12 authorJonathan Ringer <jonringer117@gmail.com> dateWed 3 Jul 2019, 19:49 (7 years ago) parent01f1129
3 files changed+26−25
pkgs/development/python-modules/websocket_client/default.nix+25 pkgs/development/python-modules/websockets_client/default.nix−24 pkgs/top-level/python-packages.nix+1−1
pkgs/development/python-modules/websocket_client/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ lib, buildPythonPackage, fetchPypi, isPy27
2+, six
3+, backports_ssl_match_hostname
4+}:
5+
6+buildPythonPackage 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+}
pkgs/development/python-modules/websockets_client/default.nixdeleted−24
@@ -1,24 +0,0 @@
1−{ stdenv, buildPythonPackage, fetchPypi, six }:
2−buildPythonPackage rec {
3− pname = "websocket_client";
4− version = "0.54.0";
5−
6− src = fetchPypi {
7− inherit version pname;
8− sha256 = "e51562c91ddb8148e791f0155fdb01325d99bb52c4cdbb291aee7a3563fd0849";
9− };
10−
11− prePatch = ''
12− # ssl.match_hostname exists in python2.7 version maintained in nixpkgs,
13− # the dependency is not necessary.
14− sed -e "s/\['backports.ssl_match_hostname'\]/\[\]/" -i setup.py
15− '';
16−
17− propagatedBuildInputs = [ six ];
18−
19− meta = with stdenv.lib; {
20− homepage = https://github.com/liris/websocket-client;
21− description = "Websocket client for python";
22− license = licenses.lgpl2;
23− };
24−}
pkgs/top-level/python-packages.nix+1−1
@@ -5089,7 +5089,7 @@ in {
50895089
50905090 larch = callPackage ../development/python-modules/larch { };
50915091
5092− websocket_client = callPackage ../development/python-modules/websockets_client { };
5092+ websocket_client = callPackage ../development/python-modules/websocket_client { };
50935093
50945094 webhelpers = callPackage ../development/python-modules/webhelpers { };
50955095