about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix b/nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix
index af681eec8ad4..2294960ce59a 100644
--- a/nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix
@@ -2,10 +2,13 @@
 , async-timeout
 , buildPythonPackage
 , fetchFromGitHub
+, fetchpatch
 , pillow
+, pytest-asyncio
 , pytestCheckHook
 , pythonOlder
 , setuptools
+, wheel
 }:
 
 buildPythonPackage rec {
@@ -13,7 +16,7 @@ buildPythonPackage rec {
   version = "2.3.3";
   format = "pyproject";
 
-  disabled = pythonOlder "3.9";
+  disabled = pythonOlder "3.10";
 
   src = fetchFromGitHub {
     owner = "home-assistant-libs";
@@ -22,8 +25,18 @@ buildPythonPackage rec {
     hash = "sha256-d+PEzCF1Cw/7NmumxIRRlr3hojpNsZM/JMQ0KWdosXk=";
   };
 
+  patches = [
+    # https://github.com/home-assistant-libs/aioslimproto/pull/189
+    (fetchpatch {
+      name = "unpin-setuptools-version.patch";
+      url = "https://github.com/home-assistant-libs/aioslimproto/commit/06fd56987be8903ff147bad38af84b21bc31bc18.patch";
+      hash = "sha256-kTu1+IwDrcdqelyK/vfhxw8MQBis5I1jag7YTytKQhs=";
+    })
+  ];
+
   nativeBuildInputs = [
     setuptools
+    wheel
   ];
 
   propagatedBuildInputs = [
@@ -32,14 +45,10 @@ buildPythonPackage rec {
   ];
 
   nativeCheckInputs = [
+    pytest-asyncio
     pytestCheckHook
   ];
 
-  disabledTests = [
-    # AssertionError: assert ['mixer', 'volume', '50'] == ['volume', '50']
-    "test_msg_instantiation"
-  ];
-
   pythonImportsCheck = [
     "aioslimproto"
   ];