python313Packages.sockjs: add patch for async-timeout (#461868)

This commit is contained in:
Fabian Affolter
2025-11-15 22:29:23 +00:00
committed by GitHub
@@ -2,26 +2,40 @@
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
aiohttp,
setuptools,
}:
buildPythonPackage rec {
pname = "sockjs";
version = "0.13.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-V+lZoj8gqNVRSdHl2ws7hwcm8rStgWbUG9z0EbNs33Y=";
};
propagatedBuildInputs = [ aiohttp ];
patches = [
# https://github.com/aio-libs/sockjs/pull/453
(fetchpatch {
name = "replace-async-timeout-with-asyncio.timeout.patch";
url = "https://github.com/aio-libs/sockjs/commit/322cec1ddc4ba35d6409565fa170eb03dbaa405b.patch";
hash = "sha256-DV+OFiFV/A7ts24xz7pbTYXVvy/NA5kzwayj0m9Kt3I=";
})
];
build-system = [ setuptools ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "sockjs" ];
meta = with lib; {
description = "Sockjs server";
homepage = "https://github.com/aio-libs/sockjs";
changelog = "https://github.com/aio-libs/sockjs/releases/tag/v${version}";
license = licenses.asl20;
maintainers = [ ];
};