diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index fae5ef8cf1039..86e009d55c408 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -16,6 +16,7 @@ , glibcLocales , h2 , hyperlink +, hypothesis , idna , incremental , priority @@ -45,7 +46,7 @@ buildPythonPackage rec { pname = "twisted"; - version = "22.8.0"; + version = "22.10.0"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -54,17 +55,9 @@ buildPythonPackage rec { pname = "Twisted"; inherit version; extension = "tar.gz"; - hash = "sha256-5bYN458tHaFT++GHTYhf4/y9sh/MRG+nWaU+j8NRO+0="; + hash = "sha256-Mqy9QKlPX0bntCwQm/riswIlCUVWF4Oot6BZBI8tTTE="; }; - patches = [ - (fetchpatch { - name = "fix-test_openFileDescriptors.patch"; - url = "https://github.com/twisted/twisted/commit/47f47634940141466177261b20bb43c300531e38.patch"; - hash = "sha256-wacnF166PnZHXJEqTlPZUdDILJIVHOcnC2a34SQumvs="; - }) - ]; - __darwinAllowLocalNetworking = true; propagatedBuildInputs = [ @@ -116,6 +109,11 @@ buildPythonPackage rec { '' + lib.optionalString (stdenv.isAarch64 && stdenv.isDarwin) '' echo 'AbortConnectionTests_AsyncioSelectorReactorTests.test_fullWriteBufferAfterByteExchange.skip = "Timeout after 120 seconds"' >> src/twisted/internet/test/test_tcp.py echo 'AbortConnectionTests_AsyncioSelectorReactorTests.test_resumeProducingAbort.skip = "Timeout after 120 seconds"' >> src/twisted/internet/test/test_tcp.py + + echo 'PosixReactorBaseTests.test_removeAllSkipsInternalReaders.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py + echo 'PosixReactorBaseTests.test_wakerIsInternalReader.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py + + echo 'TCPPortTests.test_connectionLostFailed.skip = "Fails due to unclosed event loop"' >> src/twisted/internet/test/test_posixbase.py ''; # Generate Twisted's plug-in cache. Twisted users must do it as well. See @@ -128,6 +126,7 @@ buildPythonPackage rec { checkInputs = [ git glibcLocales + hypothesis pyhamcrest ] ++ passthru.optional-dependencies.conch @@ -169,11 +168,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/twisted/twisted"; - description = "Twisted, an event-driven networking engine written in Python"; - longDescription = '' - Twisted is an event-driven networking engine written in Python - and licensed under the MIT license. - ''; + description = "Asynchronous networking framework written in Python"; license = licenses.mit; maintainers = with maintainers; [ SuperSandro2000 ]; };