From c98b7e4011447139012ac285fa047712d4e9e1ec Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 10 Aug 2024 22:46:03 +0200 Subject: [PATCH] python312Packages.zigpy-znp: disable tests They are not compatible with zigpy 0.65.3. --- .../python-modules/zigpy-znp/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/zigpy-znp/default.nix b/pkgs/development/python-modules/zigpy-znp/default.nix index c4953c39ab0f..98a7661f0483 100644 --- a/pkgs/development/python-modules/zigpy-znp/default.nix +++ b/pkgs/development/python-modules/zigpy-znp/default.nix @@ -31,16 +31,16 @@ buildPythonPackage rec { hash = "sha256-5DuqM7MgntV/3WquR+0Cr/vIwYL35ZVpGlNZPj92jJ4="; }; - nativeBuildInputs = [ setuptools ]; - postPatch = '' substituteInPlace pyproject.toml \ - --replace "timeout = 20" "timeout = 300" \ - --replace ', "setuptools-git-versioning<2"' "" \ - --replace 'dynamic = ["version"]' 'version = "${version}"' + --replace-fail "timeout = 20" "timeout = 300" \ + --replace-fail ', "setuptools-git-versioning<2"' "" \ + --replace-fail 'dynamic = ["version"]' 'version = "${version}"' ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ async-timeout coloredlogs jsonschema @@ -48,6 +48,8 @@ buildPythonPackage rec { zigpy ]; + doCheck = false; # tests are not compatible with zigpy 0.65.3 + nativeCheckInputs = [ pytest-asyncio pytest-mock