diff --git a/pkgs/development/python-modules/pymonoprice/default.nix b/pkgs/development/python-modules/pymonoprice/default.nix index 805fdf7441ed..a34b455c0fd0 100644 --- a/pkgs/development/python-modules/pymonoprice/default.nix +++ b/pkgs/development/python-modules/pymonoprice/default.nix @@ -2,34 +2,31 @@ lib, buildPythonPackage, fetchFromGitHub, - pyserial, - pyserial-asyncio-fast, pytestCheckHook, + serialx, setuptools, + setuptools-scm, }: buildPythonPackage rec { pname = "pymonoprice"; - version = "0.5"; + version = "0.6.1"; pyproject = true; src = fetchFromGitHub { owner = "etsinko"; repo = "pymonoprice"; - tag = version; - hash = "sha256-kyFOWG/Jvn+h9ludzd2Zul9/lkwPxReH76nnDIGD+fM="; + tag = "v${version}"; + hash = "sha256-UwP2R3gpu2gNgIEzyA9QSvPx40HfPALXFwHy4aJS6XA="; }; - patches = [ - # https://github.com/etsinko/pymonoprice/pull/14 - ./python-3.14-compat.patch + build-system = [ + setuptools + setuptools-scm ]; - build-system = [ setuptools ]; - dependencies = [ - pyserial - pyserial-asyncio-fast + serialx ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pymonoprice/python-3.14-compat.patch b/pkgs/development/python-modules/pymonoprice/python-3.14-compat.patch deleted file mode 100644 index ffae01884836..000000000000 --- a/pkgs/development/python-modules/pymonoprice/python-3.14-compat.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 834cb4f51555f3e027ad0632970e0fdd8ec38a85 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= -Date: Thu, 5 Mar 2026 03:19:19 +0100 -Subject: [PATCH] Fix Python 3.14 compatibility - ---- - tests/test_monoprice.py | 2 +- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/tests/test_monoprice.py b/tests/test_monoprice.py -index 60def3b..3039895 100644 ---- a/tests/test_monoprice.py -+++ b/tests/test_monoprice.py -@@ -332,7 +332,7 @@ class TestAsyncMonoprice(TestMonoprice): - - def setUp(self): - self.responses = {} -- loop = asyncio.get_event_loop() -+ loop = asyncio.new_event_loop() - monoprice = loop.run_until_complete(get_async_monoprice(create_dummy_port(self.responses))) - - # Dummy monoprice that converts async to sync