From 9fa07f2418aed87ec61f0dbb43882c408048cae9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 26 Mar 2026 20:15:36 +0100 Subject: [PATCH] python3Packages.loqedapi: modernize --- .../python-modules/loqedapi/default.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/loqedapi/default.nix b/pkgs/development/python-modules/loqedapi/default.nix index 4714a74495d7..453ced453d90 100644 --- a/pkgs/development/python-modules/loqedapi/default.nix +++ b/pkgs/development/python-modules/loqedapi/default.nix @@ -5,10 +5,9 @@ buildPythonPackage, fetchFromGitHub, setuptools, - wheel, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "loqedapi"; version = "2.1.11"; pyproject = true; @@ -16,16 +15,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "cpolhout"; repo = "loqedAPI"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-DLnjIq0YQIspPWYP9KT0UZ9UPGg5SOjYuVM7XqCUqTo="; }; - nativeBuildInputs = [ - setuptools - wheel - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp async-timeout ]; @@ -38,8 +34,8 @@ buildPythonPackage rec { meta = { description = "Module to interact with the Loqed Smart Door Lock API"; homepage = "https://github.com/cpolhout/loqedAPI"; - changelog = "https://github.com/cpolhout/loqedAPI/releases/tag/v${version}"; + changelog = "https://github.com/cpolhout/loqedAPI/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ fab ]; }; -} +})