From 3a319304f4370790d96b68d341a6a7c2c00e2b69 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 13 Oct 2024 23:45:52 +0200 Subject: [PATCH] python312Packages.simple-websocket: 1.0.0 -> 1.1.0 Diff: https://github.com/miguelgrinberg/simple-websocket/compare/refs/tags/v1.0.0...v1.1.0 Changelog: https://github.com/miguelgrinberg/simple-websocket/blob/1.1.0/CHANGES.md --- .../simple-websocket/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/simple-websocket/default.nix b/pkgs/development/python-modules/simple-websocket/default.nix index a7937b59f6c1e..3c2e78338f2a4 100644 --- a/pkgs/development/python-modules/simple-websocket/default.nix +++ b/pkgs/development/python-modules/simple-websocket/default.nix @@ -3,34 +3,38 @@ buildPythonPackage, fetchFromGitHub, pytestCheckHook, + pythonOlder, setuptools, - wheel, wsproto, }: buildPythonPackage rec { pname = "simple-websocket"; - version = "1.0.0"; - format = "pyproject"; + version = "1.1.0"; + pyproject = true; + + disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "miguelgrinberg"; repo = "simple-websocket"; rev = "refs/tags/v${version}"; - hash = "sha256-5dUZnbjHzH1sQ93CbFdEoW9j2zY4Z+8wNsYfmOrgC8E="; + hash = "sha256-dwL6GUyygNGBXqkkTnsHwFFpa1JAaeWc9ycQNRgTN4I="; }; - nativeBuildInputs = [ - setuptools - wheel - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ wsproto ]; + dependencies = [ wsproto ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "simple_websocket" ]; + disabledTests = [ + # Tests require network access + "SimpleWebSocketClientTestCase" + ]; + meta = with lib; { description = "Simple WebSocket server and client for Python"; homepage = "https://github.com/miguelgrinberg/simple-websocket";