depot/third_party/nixpkgs/pkgs/development/python-modules/websockets/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
613 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, pytest
, stdenv
}:
buildPythonPackage rec {
pname = "websockets";
version = "8.1";
src = fetchFromGitHub {
owner = "aaugustin";
repo = pname;
rev = version;
sha256 = "05jbqcbjg50ydwl0fijhdlqcq7fl6v99kjva66kmmzzza7vwa872";
};
disabled = pythonOlder "3.3";
# Tests fail on Darwin with `OSError: AF_UNIX path too long`
doCheck = !stdenv.isDarwin;
meta = with lib; {
description = "WebSocket implementation in Python 3";
homepage = "https://github.com/aaugustin/websockets";
license = licenses.bsd3;
};
}