2016-12-14 18:10:14 +00:00
|
|
|
{ lib
|
2019-09-16 21:24:14 +01:00
|
|
|
, fetchFromGitHub
|
2016-12-14 18:10:14 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2019-09-16 21:24:14 +01:00
|
|
|
, pytest
|
2019-09-29 21:00:32 +01:00
|
|
|
, stdenv
|
2016-12-14 18:10:14 +00:00
|
|
|
}:
|
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
buildPythonPackage rec {
|
2016-12-14 18:10:14 +00:00
|
|
|
pname = "websockets";
|
2019-09-16 21:24:14 +01:00
|
|
|
version = "8.0.2";
|
2016-12-14 18:10:14 +00:00
|
|
|
|
2019-09-16 21:24:14 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aaugustin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "02fgb8gib4z5fqv30brz3mhxmblw9bw0978fhpjdrkj7wvqrz5h8";
|
2016-12-14 18:10:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
2019-09-29 21:00:32 +01:00
|
|
|
# Tests fail on Darwin with `OSError: AF_UNIX path too long`
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2019-09-16 21:24:14 +01:00
|
|
|
meta = with lib; {
|
2016-12-14 18:10:14 +00:00
|
|
|
description = "WebSocket implementation in Python 3";
|
2019-09-16 21:24:14 +01:00
|
|
|
homepage = "https://github.com/aaugustin/websockets";
|
|
|
|
license = licenses.bsd3;
|
2016-12-14 18:10:14 +00:00
|
|
|
};
|
|
|
|
}
|