2020-05-01 10:08:15 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, git
|
2021-11-01 20:59:40 +00:00
|
|
|
, ruamel-yaml
|
2020-05-01 10:08:15 +01:00
|
|
|
, jsonschema
|
|
|
|
, rfc3987
|
|
|
|
, setuptools
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2020-05-01 10:08:15 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dtschema";
|
2021-10-06 02:51:55 +01:00
|
|
|
version = "2021.10";
|
2020-05-01 10:08:15 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-06 02:51:55 +01:00
|
|
|
sha256 = "d09c94d13f46e6674ba11ff31220651ad1b02dae860f5a87905dfac6b8d768d9";
|
2020-05-01 10:08:15 +01:00
|
|
|
};
|
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm git ];
|
2020-05-01 10:08:15 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
2021-11-01 20:59:40 +00:00
|
|
|
ruamel-yaml
|
2020-05-01 10:08:15 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|