nixpkgs-suyu/pkgs/development/python-modules/websockets/default.nix

31 lines
613 B
Nix
Raw Normal View History

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