From 148c6ae940b2bd20856a83aa0b3bffccab761e19 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 25 Apr 2024 17:32:20 +0200 Subject: [PATCH 1/2] python312Packages.pyrfxtrx: 0.31.0 -> 0.31.1 Diff: https://github.com/Danielhiversen/pyRFXtrx/compare/refs/tags/0.31.0...0.31.1 --- pkgs/development/python-modules/pyrfxtrx/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyrfxtrx/default.nix b/pkgs/development/python-modules/pyrfxtrx/default.nix index a9da74ca7e84..2a9b166b1b97 100644 --- a/pkgs/development/python-modules/pyrfxtrx/default.nix +++ b/pkgs/development/python-modules/pyrfxtrx/default.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "pyrfxtrx"; - version = "0.31.0"; + version = "0.31.1"; format = "setuptools"; src = fetchFromGitHub { owner = "Danielhiversen"; repo = "pyRFXtrx"; rev = "refs/tags/${version}"; - hash = "sha256-0t5pPBk8Mzdm6STGtqGMljPjDoW2DTT7x21MEnG512w="; + hash = "sha256-Y9UVJZxm5G5ywNLW8nm162cZTs3/mFeI+ZEUGoc9eAs="; }; propagatedBuildInputs = [ From 8ba37aca6656a7a2d5558f33c44c1d5daded6788 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 25 Apr 2024 17:34:13 +0200 Subject: [PATCH 2/2] python312Packages.pyrfxtrx: refactor --- .../python-modules/pyrfxtrx/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyrfxtrx/default.nix b/pkgs/development/python-modules/pyrfxtrx/default.nix index 2a9b166b1b97..e9c1fac67131 100644 --- a/pkgs/development/python-modules/pyrfxtrx/default.nix +++ b/pkgs/development/python-modules/pyrfxtrx/default.nix @@ -3,12 +3,13 @@ , fetchFromGitHub , pyserial , pytestCheckHook +, setuptools }: buildPythonPackage rec { pname = "pyrfxtrx"; version = "0.31.1"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "Danielhiversen"; @@ -17,7 +18,11 @@ buildPythonPackage rec { hash = "sha256-Y9UVJZxm5G5ywNLW8nm162cZTs3/mFeI+ZEUGoc9eAs="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ pyserial ]; @@ -25,14 +30,10 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = [ - # https://github.com/Danielhiversen/pyRFXtrx/issues/130 - "tests/test_rollertrol.py" - ]; - meta = with lib; { description = "Library to communicate with the RFXtrx family of devices"; homepage = "https://github.com/Danielhiversen/pyRFXtrx"; + changelog = "https://github.com/Danielhiversen/pyRFXtrx/releases/tag/${version}"; license = licenses.lgpl3Plus; maintainers = with maintainers; [ dotlambda ]; };