2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, git
|
2021-12-06 16:07:01 +00:00
|
|
|
, ruamel-yaml
|
2020-09-25 04:45:31 +00:00
|
|
|
, jsonschema
|
|
|
|
, rfc3987
|
|
|
|
, setuptools
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dtschema";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2022.1";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-G5KzuaMbbkuLK+cNvzBld1UwvExS6ZGVW2e+GXQRFMU=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm git ];
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2020-09-25 04:45:31 +00:00
|
|
|
jsonschema
|
|
|
|
rfc3987
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tooling for devicetree validation using YAML and jsonschema";
|
|
|
|
homepage = "https://github.com/devicetree-org/dt-schema/";
|
|
|
|
# all files have SPDX tags
|
|
|
|
license = with licenses; [ bsd2 gpl2 ];
|
|
|
|
maintainers = with maintainers; [ sorki ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|