From 3c502946306f15adaac28dcf60f87b8df1a318e4 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 22 Aug 2023 15:07:28 -0700 Subject: [PATCH] python3.pkgs.aiorecollect: 2022.10.0 -> 2023.08.0 --- .../python-modules/aiorecollect/default.nix | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiorecollect/default.nix b/pkgs/development/python-modules/aiorecollect/default.nix index 259e7f6d530b..c5fdc3f8f36f 100644 --- a/pkgs/development/python-modules/aiorecollect/default.nix +++ b/pkgs/development/python-modules/aiorecollect/default.nix @@ -3,6 +3,7 @@ , aresponses , buildPythonPackage , fetchFromGitHub +, fetchpatch , freezegun , poetry-core , pytest-asyncio @@ -12,7 +13,7 @@ buildPythonPackage rec { pname = "aiorecollect"; - version = "2022.10.0"; + version = "2023.08.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -21,9 +22,29 @@ buildPythonPackage rec { owner = "bachya"; repo = pname; rev = version; - hash = "sha256-JIh6jr4pFXGZTUi6K7VsymaCxCrTNBevk9xo9TsrFnM="; + hash = "sha256-oTkWirq3w0DgQWWe0ziK+ry4pg6j6SQbBESLG4xgDE4="; }; + patches = [ + # This patch removes references to setuptools and wheel that are no longer + # necessary and changes poetry to poetry-core, so that we don't need to add + # unnecessary nativeBuildInputs. + # + # https://github.com/bachya/aiorecollect/pull/207 + # + (fetchpatch { + name = "clean-up-dependencies.patch"; + url = "https://github.com/bachya/aiorecollect/commit/0bfddead1c1b176be4d599b8e12ed608eac97b8b.patch"; + hash = "sha256-w/LAtyuyYsAAukDeIy8XLlp9QrydC1Wmi2zxEj1Zdm8="; + includes = [ "pyproject.toml" ]; + }) + ]; + + postPatch = '' + # this is not used directly by the project + sed -i '/certifi =/d' pyproject.toml + ''; + nativeBuildInputs = [ poetry-core ]; @@ -32,6 +53,8 @@ buildPythonPackage rec { aiohttp ]; + __darwinAllowLocalNetworking = true; + nativeCheckInputs = [ aresponses freezegun