From 6ed354fcd114d3d610627c13f8b70f55371aa29b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Nov 2023 22:00:25 +0100 Subject: [PATCH] python311Packages.pydeconz: 113 -> 114 Diff: https://github.com/Kane610/deconz/compare/refs/tags/v113...v114 Changelog: https://github.com/Kane610/deconz/releases/tag/v114 --- .../python-modules/pydeconz/default.nix | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pydeconz/default.nix b/pkgs/development/python-modules/pydeconz/default.nix index a58e69fe0255..9a322790f865 100644 --- a/pkgs/development/python-modules/pydeconz/default.nix +++ b/pkgs/development/python-modules/pydeconz/default.nix @@ -1,32 +1,44 @@ { lib , aiohttp , aioresponses -, async-timeout , buildPythonPackage , fetchFromGitHub , orjson , pytest-aiohttp , pytestCheckHook , pythonOlder +, setuptools +, wheel }: buildPythonPackage rec { pname = "pydeconz"; - version = "113"; - format = "setuptools"; + version = "114"; + pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "Kane610"; repo = "deconz"; rev = "refs/tags/v${version}"; - hash = "sha256-Vf3nYUopaGY5JK//rqqsz47VRHwql1cQcslYbkH3owQ="; + hash = "sha256-XN6di3pxB7lhZ5TQnyHr7nKA0STBi0CVzGnhvRDsbFY="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "--cov=pydeconz --cov-report term-missing" "" \ + --replace "setuptools==" "setuptools>=" \ + --replace "wheel==" "wheel>=" + ''; + + nativeBuildInputs = [ + setuptools + wheel + ]; + propagatedBuildInputs = [ aiohttp - async-timeout orjson ];