Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions pkgs/development/python-modules/twisted/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
, glibcLocales
, h2
, hyperlink
, hypothesis
, idna
, incremental
, priority
Expand Down Expand Up @@ -45,7 +46,7 @@

buildPythonPackage rec {
pname = "twisted";
version = "22.8.0";
version = "22.10.0";
format = "setuptools";

disabled = pythonOlder "3.6";
Expand All @@ -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 = [
Expand Down Expand Up @@ -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
Expand All @@ -128,6 +126,7 @@ buildPythonPackage rec {
checkInputs = [
git
glibcLocales
hypothesis
pyhamcrest
]
++ passthru.optional-dependencies.conch
Expand Down Expand Up @@ -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 ];
};
Expand Down