2016-12-14 19:10:14 +01:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "websockets";
|
2017-08-24 19:34:20 +02:00
|
|
|
version = "3.4";
|
2016-12-14 19:10:14 +01:00
|
|
|
in buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
2017-08-24 19:34:20 +02:00
|
|
|
sha256 = "43e5b9f51dd0000a4c6f646e2ade0c886bd14a784ffac08b9e079bd17a63bcc5";
|
2016-12-14 19:10:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
doCheck = false; # protocol tests fail
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "WebSocket implementation in Python 3";
|
|
|
|
homepage = https://github.com/aaugustin/websockets;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|