diff --git a/pkgs/development/python-modules/sockjs/default.nix b/pkgs/development/python-modules/sockjs/default.nix index 3268a20052f8..c23e116d928c 100644 --- a/pkgs/development/python-modules/sockjs/default.nix +++ b/pkgs/development/python-modules/sockjs/default.nix @@ -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 = [ ]; };