From 26efe9da92e0f482d4b93a251b5857f68d0dcfa4 Mon Sep 17 00:00:00 2001 From: Roosembert Palacios Date: Sat, 26 Nov 2022 12:45:50 +0100 Subject: [PATCH] python310Packages.aioquic: fix build Signed-off-by: Roosembert Palacios --- .../development/python-modules/aioquic/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/development/python-modules/aioquic/default.nix b/pkgs/development/python-modules/aioquic/default.nix index 9ea35ea2d668..7b6c8890f887 100644 --- a/pkgs/development/python-modules/aioquic/default.nix +++ b/pkgs/development/python-modules/aioquic/default.nix @@ -1,5 +1,6 @@ { lib , fetchPypi +, fetchpatch , buildPythonPackage , openssl , pylsqpack @@ -17,6 +18,19 @@ buildPythonPackage rec { sha256 = "sha256-7ENqqs6Ze4RrAeUgDtv34+VrkYJqFE77l0j9jd0zK74="; }; + patches = [ + # This patch is here because it's required by the next patch. + (fetchpatch { + url = "https://github.com/aiortc/aioquic/commit/3930580b50831a034d21ee4689362188b21a4d6a.patch"; + hash = "sha256-XjhyajDawN/G1nPtkMbNe66iJCo76UpdA7PqwtxO5ag="; + }) + # https://github.com/aiortc/aioquic/pull/349, fixes test failure due pyopenssl==22 + (assert lib.versions.major pyopenssl.version == "22"; fetchpatch { + url = "https://github.com/aiortc/aioquic/commit/c3b72be85868d67ee32d49ab9bd98a4357cbcde9.patch"; + hash = "sha256-AjW+U9DpNXgA5yqKkWnx0OYpY2sZR9KIdQ3pSzxU+uY="; + }) + ]; + propagatedBuildInputs = [ certifi pylsqpack