From 73eecb7dbb73154085e4a2cffe8781ed93584362 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Oct 2024 16:33:21 +0200 Subject: [PATCH] python312Packages.websockets: 12.0 -> 13.1 Diff: https://github.com/aaugustin/websockets/compare/refs/tags/12.0...13.1 Changelog: https://github.com/aaugustin/websockets/blob/13.1/docs/project/changelog.rst --- .../python-modules/websockets/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/websockets/default.nix b/pkgs/development/python-modules/websockets/default.nix index 907024735afb..59b1e02d771f 100644 --- a/pkgs/development/python-modules/websockets/default.nix +++ b/pkgs/development/python-modules/websockets/default.nix @@ -10,19 +10,19 @@ buildPythonPackage rec { pname = "websockets"; - version = "12.0"; + version = "13.1"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "aaugustin"; - repo = pname; + repo = "websockets"; rev = "refs/tags/${version}"; - hash = "sha256-sOL3VI9Ib/PncZs5KN4dAIHOrBc7LfXqT15LO4M6qKg="; + hash = "sha256-Y0HDZw+H7l8+ywLLzFk66GNDCI0uWOZYypG86ozLo7c="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; patchPhase = '' # Disable all tests that need to terminate within a predetermined amount of @@ -47,6 +47,11 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; + preCheck = '' + # https://github.com/python-websockets/websockets/issues/1509 + export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100 + ''; + # Tests fail on Darwin with `OSError: AF_UNIX path too long` doCheck = !stdenv.hostPlatform.isDarwin;