nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 30 lines 613 B view raw
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pythonOlder 5, pytest 6, stdenv 7}: 8 9buildPythonPackage rec { 10 pname = "websockets"; 11 version = "8.1"; 12 13 src = fetchFromGitHub { 14 owner = "aaugustin"; 15 repo = pname; 16 rev = version; 17 sha256 = "05jbqcbjg50ydwl0fijhdlqcq7fl6v99kjva66kmmzzza7vwa872"; 18 }; 19 20 disabled = pythonOlder "3.3"; 21 22 # Tests fail on Darwin with `OSError: AF_UNIX path too long` 23 doCheck = !stdenv.isDarwin; 24 25 meta = with lib; { 26 description = "WebSocket implementation in Python 3"; 27 homepage = "https://github.com/aaugustin/websockets"; 28 license = licenses.bsd3; 29 }; 30}