From 3e80e8e73552e8b128774c3452289e99e5e69581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 3 Apr 2025 10:45:24 -0700 Subject: [PATCH] python313Packages.alarmdecoder: 1.13.12 -> 1.13.13 Diff: https://github.com/nutechsoftware/alarmdecoder/compare/1.13.12...1.13.13 Changelog: https://github.com/nutechsoftware/alarmdecoder/releases/tag/1.13.13 --- .../python-modules/alarmdecoder/default.nix | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/alarmdecoder/default.nix b/pkgs/development/python-modules/alarmdecoder/default.nix index 185843b7db50..60afa371aa68 100644 --- a/pkgs/development/python-modules/alarmdecoder/default.nix +++ b/pkgs/development/python-modules/alarmdecoder/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, mock, pyftdi, pyopenssl, @@ -9,27 +10,37 @@ pytestCheckHook, pythonOlder, pyusb, + setuptools-scm, }: buildPythonPackage rec { pname = "alarmdecoder"; - version = "1.13.12"; - format = "setuptools"; - disabled = pythonOlder "3.6"; + version = "1.13.13"; + pyproject = true; src = fetchFromGitHub { owner = "nutechsoftware"; repo = "alarmdecoder"; - rev = version; - hash = "sha256-d9xNXPhFX2TUjnzZlhvqq/YASITBn6lMVTzqi+TPNjI="; + tag = version; + hash = "sha256-dMOC8znhnCAn4fKSnT9Vw1oGzDRN72d6m8RWD1NQ6Ms="; }; + patches = [ + (fetchpatch { + name = "use-setuptools_scm.patch"; + url = "https://github.com/nutechsoftware/alarmdecoder/commit/e9fc6aa76d7925bb61a3c53716f2b6e25c9ca342.patch"; + hash = "sha256-vt48QfbkcwQmMgJckpawENVMselVx17jrCNKkZ+s95k="; + }) + ]; + postPatch = '' substituteInPlace test/test_{ad2,devices,messages}.py \ --replace-fail assertEquals assertEqual ''; - propagatedBuildInputs = [ + build-system = [ setuptools-scm ]; + + dependencies = [ pyftdi pyopenssl pyserial @@ -50,6 +61,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "alarmdecoder" ]; meta = with lib; { + changelog = "https://github.com/nutechsoftware/alarmdecoder/releases/tag/${src.tag}"; description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices"; homepage = "https://github.com/nutechsoftware/alarmdecoder"; license = licenses.mit;