From 83659c7c6eb4afdc3ab312aa51283717d329cf53 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 7 Sep 2023 00:30:33 +0200 Subject: python311Packages.aiounifi: 61 -> 61 https://github.com/Kane610/aiounifi/releases/tag/v61 --- .../python-modules/aiounifi/default.nix | 25 ++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aiounifi/default.nix b/pkgs/development/python-modules/aiounifi/default.nix index 09b177a61bf7..45591837df44 100644 --- a/pkgs/development/python-modules/aiounifi/default.nix +++ b/pkgs/development/python-modules/aiounifi/default.nix @@ -1,7 +1,6 @@ { lib , aiohttp , aioresponses -, async-timeout , buildPythonPackage , fetchFromGitHub , orjson @@ -10,25 +9,39 @@ , pytestCheckHook , pythonOlder , segno +, setuptools +, wheel }: buildPythonPackage rec { pname = "aiounifi"; - version = "55"; - format = "setuptools"; + version = "61"; + format = "pyproject"; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "Kane610"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-JvuP1Rhq01Y9KbfAJpawUQNWfxvlf9LY82RvXok4tgw="; + hash = "sha256-tzP20KDPCq1/fJY+OfEpo3LMbP662ROh2aPI4nmDp0Y="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "setuptools==" "setuptools>=" \ + --replace "wheel==" "wheel>=" + + sed -i '/--cov=/d' pyproject.toml + ''; + + nativeBuildInputs = [ + setuptools + wheel + ]; + propagatedBuildInputs = [ aiohttp - async-timeout orjson segno ]; -- cgit 1.4.1