Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7 wheel, 8 wsproto, 9}: 10 11buildPythonPackage rec { 12 pname = "simple-websocket"; 13 version = "1.0.0"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub { 17 owner = "miguelgrinberg"; 18 repo = "simple-websocket"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-5dUZnbjHzH1sQ93CbFdEoW9j2zY4Z+8wNsYfmOrgC8E="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 wheel 26 ]; 27 28 propagatedBuildInputs = [ wsproto ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "simple_websocket" ]; 33 34 meta = with lib; { 35 description = "Simple WebSocket server and client for Python"; 36 homepage = "https://github.com/miguelgrinberg/simple-websocket"; 37 changelog = "https://github.com/miguelgrinberg/simple-websocket/blob/${version}/CHANGES.md"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}