Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 30 lines 665 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy36 2, dataclasses 3, h11 4, pytest 5}: 6 7buildPythonPackage rec { 8 pname = "wsproto"; 9 version = "0.15.0"; 10 disabled = pythonOlder "3.6"; # python versions <3.6 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"; 15 }; 16 17 propagatedBuildInputs = [ h11 ] ++ lib.optional isPy36 dataclasses; 18 19 checkInputs = [ pytest ]; 20 21 checkPhase = '' 22 py.test 23 ''; 24 25 meta = with lib; { 26 description = "Pure Python, pure state-machine WebSocket implementation"; 27 homepage = https://github.com/python-hyper/wsproto/; 28 license = licenses.mit; 29 }; 30}