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
This commit is contained in:
committed by
Martin Weinelt
parent
1307f6be7f
commit
73eecb7dbb
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user