From bf8a1a8c4e02a4fd73eacb7e8732deba1ac6a6f9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 09:10:16 +0200 Subject: [PATCH] python312Packages.pydeconz: refactor --- .../python-modules/pydeconz/default.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pydeconz/default.nix b/pkgs/development/python-modules/pydeconz/default.nix index 76fbae16299b..68e31e000270 100644 --- a/pkgs/development/python-modules/pydeconz/default.nix +++ b/pkgs/development/python-modules/pydeconz/default.nix @@ -9,7 +9,6 @@ pytestCheckHook, pythonOlder, setuptools, - wheel, }: buildPythonPackage rec { @@ -17,7 +16,7 @@ buildPythonPackage rec { version = "116"; pyproject = true; - disabled = pythonOlder "3.11"; + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "Kane610"; @@ -28,17 +27,16 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace "--cov=pydeconz --cov-report term-missing" "" \ - --replace "setuptools==" "setuptools>=" \ - --replace "wheel==" "wheel>=" + --replace-fail "--cov=pydeconz --cov-report term-missing" "" \ + --replace-fail "setuptools==" "setuptools>=" \ + --replace-fail "wheel==" "wheel>=" ''; - nativeBuildInputs = [ + build-system = [ setuptools - wheel ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp orjson ]; @@ -53,10 +51,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python library wrapping the Deconz REST API"; - mainProgram = "pydeconz"; homepage = "https://github.com/Kane610/deconz"; changelog = "https://github.com/Kane610/deconz/releases/tag/v${version}"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; + mainProgram = "pydeconz"; }; }