From d7c774fcf728dd6156a17f7cb49f2dd44fdd9de2 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sun, 18 Jan 2026 05:08:20 +0100 Subject: [PATCH] python313Packages.dtschema: enable tests --- pkgs/development/python-modules/dtschema/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/dtschema/default.nix b/pkgs/development/python-modules/dtschema/default.nix index 56b28a5ac4f4..1cd18560ac39 100644 --- a/pkgs/development/python-modules/dtschema/default.nix +++ b/pkgs/development/python-modules/dtschema/default.nix @@ -8,6 +8,8 @@ ruamel-yaml, setuptools-scm, libfdt, + pytestCheckHook, + dtc, }: buildPythonPackage rec { @@ -31,11 +33,15 @@ buildPythonPackage rec { libfdt ]; - # Module has no tests - doCheck = false; - pythonImportsCheck = [ "dtschema" ]; + nativeCheckInputs = [ + pytestCheckHook + dtc + ]; + + enabledTestPaths = [ "test/test-dt-validate.py" ]; + meta = { description = "Tooling for devicetree validation using YAML and jsonschema"; homepage = "https://github.com/devicetree-org/dt-schema/";