11 buildPythonPackage rec {
12 pname = "simple-websocket";
16 disabled = pythonOlder "3.11";
18 src = fetchFromGitHub {
19 owner = "miguelgrinberg";
20 repo = "simple-websocket";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-dwL6GUyygNGBXqkkTnsHwFFpa1JAaeWc9ycQNRgTN4I=";
25 build-system = [ setuptools ];
27 dependencies = [ wsproto ];
29 nativeCheckInputs = [ pytestCheckHook ];
31 pythonImportsCheck = [ "simple_websocket" ];
34 # Tests require network access
35 "SimpleWebSocketClientTestCase"
39 description = "Simple WebSocket server and client for Python";
40 homepage = "https://github.com/miguelgrinberg/simple-websocket";
41 changelog = "https://github.com/miguelgrinberg/simple-websocket/blob/${version}/CHANGES.md";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];