Files
nixpkgs/pkgs/development/python-modules/dtschema/default.nix
Skye Soss 0f90372bd4 treewide: Use the OR compound license expression
This commit replaces every use of '# or' in a license list with the
lib.licenses.OR compound license constructor.

Assisted-by: claude-opus-5-5
2026-11-03 16:32:28 -06:00

61 lines
1.2 KiB
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
jsonschema,
rfc3987,
ruamel-yaml,
setuptools-scm,
libfdt,
pytestCheckHook,
dtc,
}:
buildPythonPackage (finalAttrs: {
pname = "dtschema";
version = "2026.09";
pyproject = true;
src = fetchFromGitHub {
owner = "devicetree-org";
repo = "dt-schema";
tag = "v${finalAttrs.version}";
hash = "sha256-7GLRG6l05IGS9E2BoOYMYv7vk2hDU5wt0jPiflwhxWc=";
};
build-system = [ setuptools-scm ];
dependencies = [
jsonschema
rfc3987
ruamel-yaml
libfdt
];
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/";
changelog = "https://github.com/devicetree-org/dt-schema/releases/tag/v${finalAttrs.version}";
license =
with lib.licenses;
OR [
bsd2
gpl2Only
];
maintainers = with lib.maintainers; [ sorki ];
# Library not loaded: @rpath/libfdt.1.dylib
broken = stdenv.hostPlatform.isDarwin;
};
})