1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/development/python-modules/websockets/default.nix

27 lines
594 B
Nix
Raw Normal View History

2016-12-14 18:10:14 +00:00
{ lib
, fetchurl
, buildPythonPackage
, pythonOlder
}:
let
pname = "websockets";
2017-12-30 11:28:29 +00:00
version = "4.0.1";
2016-12-14 18:10:14 +00:00
in buildPythonPackage rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
2017-12-30 11:28:29 +00:00
sha256 = "da4d4fbe059b0453e726d6d993760065d69b823a27efc3040402a6fcfe6a1ed9";
2016-12-14 18:10:14 +00: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;
};
}