git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.websocket_client: 0.40.0 -> 0.47.0
commiteaa94b29ee9d2af6da612719e7f851d5f781b1f7 authorLancelot SIX <lsix@lancelotsix.com> dateMon 26 Feb 2018, 13:04 (9 years ago) parentb45fb43
2 files changed+25−16
pkgs/development/python-modules/websockets_client/default.nix+24 pkgs/top-level/python-packages.nix+1−16
pkgs/development/python-modules/websockets_client/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, buildPythonPackage, fetchPypi, six }:
2+buildPythonPackage rec {
3+ pname = "websocket_client";
4+ version = "0.47.0";
5+
6+ src = fetchPypi {
7+ inherit version pname;
8+ sha256 = "0jb1446053ryp5p25wsr1hjfdzwfm04a6f3pzpcb63bfz96xqlx4";
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−16
@@ -18590,22 +18590,7 @@ EOF
1859018590 };
1859118591
1859218592
18593− websocket_client = buildPythonPackage rec {
18594− name = "websocket_client-0.40.0";
18595−
18596− src = pkgs.fetchurl {
18597− url = "mirror://pypi/w/websocket-client/${name}.tar.gz";
18598− sha256 = "1yz67wdjijrvwpx0a0f6wdfy8ajsvr9xbj5514ld452fqnh19b20";
18599− };
18600−
18601− propagatedBuildInputs = with self; [ six backports_ssl_match_hostname unittest2 argparse ];
18602−
18603− meta = {
18604− homepage = https://github.com/liris/websocket-client;
18605− description = "Websocket client for python";
18606− license = licenses.lgpl2;
18607− };
18608− };
18593+ websocket_client = callPackage ../development/python-modules/websockets_client { };
1860918594
1861018595
1861118596 webhelpers = buildPythonPackage rec {