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/";