From c055da6f70e7467b5502d01b63d0578a5caf67d5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 26 Mar 2026 17:14:29 +0000 Subject: [PATCH 1/2] python3Packages.loqedapi: 2.1.10 -> 2.1.11 --- pkgs/development/python-modules/loqedapi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/loqedapi/default.nix b/pkgs/development/python-modules/loqedapi/default.nix index 4b58b061a009..4714a74495d7 100644 --- a/pkgs/development/python-modules/loqedapi/default.nix +++ b/pkgs/development/python-modules/loqedapi/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "loqedapi"; - version = "2.1.10"; + version = "2.1.11"; pyproject = true; src = fetchFromGitHub { owner = "cpolhout"; repo = "loqedAPI"; tag = "v${version}"; - hash = "sha256-IYzrGqql6mmm+FmasxFJvKgHvg7n81WOu+GGAEQ1+Os="; + hash = "sha256-DLnjIq0YQIspPWYP9KT0UZ9UPGg5SOjYuVM7XqCUqTo="; }; nativeBuildInputs = [ From 9fa07f2418aed87ec61f0dbb43882c408048cae9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 26 Mar 2026 20:15:36 +0100 Subject: [PATCH 2/2] 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 ]; }; -} +})