1{ lib
2, fetchurl
3, buildPythonPackage
4, pythonOlder
5}:
6
7let
8 pname = "websockets";
9 version = "3.4";
10in buildPythonPackage rec {
11 name = "${pname}-${version}";
12
13 src = fetchurl {
14 url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
15 sha256 = "43e5b9f51dd0000a4c6f646e2ade0c886bd14a784ffac08b9e079bd17a63bcc5";
16 };
17
18 disabled = pythonOlder "3.3";
19 doCheck = false; # protocol tests fail
20
21 meta = {
22 description = "WebSocket implementation in Python 3";
23 homepage = https://github.com/aaugustin/websockets;
24 license = lib.licenses.bsd3;
25 };
26}