mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
python3Packages.pymonoprice: 0.5 -> 0.6.1
https://github.com/etsinko/pymonoprice/releases/tag/0.6.1
This commit is contained in:
@@ -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 ];
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
From 834cb4f51555f3e027ad0632970e0fdd8ec38a85 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= <sandro.jaeckel@gmail.com>
|
||||
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
|
||||
Reference in New Issue
Block a user