From 74a5fa10cd822f478edfac7418acafdcaf978240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 21 Apr 2023 17:27:10 -0700 Subject: [PATCH] python310Packages.yarl: 1.8.2 -> 1.9.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hopefully fixes segfaults on aarch64, https://github.com/aio-libs/yarl/issues/835 Also apply upstream patch to aiohttp to make it work with this version of yarl. Changelog: https://github.com/aio-libs/yarl/blob/v1.9.2/CHANGES.rst Co-Authored-By: Robert Schütz --- pkgs/development/python-modules/aiohttp/default.nix | 6 ++++++ pkgs/development/python-modules/yarl/default.nix | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 75449c9f625c..92f1fbd53828 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -48,6 +48,12 @@ buildPythonPackage rec { url = "https://github.com/aio-libs/aiohttp/commit/5718879cdb6a98bf48810a994b78bc02abaf3e07.patch"; hash = "sha256-4UynkTZOzWzusQ2+MPZszhFA8I/PJNLeT/hHF/fASy8="; }) + (fetchpatch { + # https://github.com/aio-libs/aiohttp/pull/7260 + # Merged upstream, should likely be dropped post-3.8.4 + url = "https://github.com/aio-libs/aiohttp/commit/7dcc235cafe0c4521bbbf92f76aecc82fee33e8b.patch"; + hash = "sha256-ZzhlE50bmA+e2XX2RH1FuWQHZIAa6Dk/hZjxPoX5t4g="; + }) ]; postPatch = '' diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix index 1a1295d29bee..ca4ab078cdb6 100644 --- a/pkgs/development/python-modules/yarl/default.nix +++ b/pkgs/development/python-modules/yarl/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "yarl"; - version = "1.8.2"; + version = "1.9.2"; disabled = pythonOlder "3.7"; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-SdQ0AsbjATrQl4YCv2v1MoU1xI0ZIwS5G5ejxnkLFWI="; + hash = "sha256-BKudS59YfAbYAcKr/pMXt3zfmWxlqQ1ehOzEUBCCNXE="; }; postPatch = '' @@ -42,10 +42,6 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = lib.optionals (pythonAtLeast "3.11") [ - "test_not_a_scheme2" - ]; - postCheck = '' popd '';