Skip to content

Commit

Permalink
dt-schema: init at 2020.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Jul 24, 2020
1 parent ae33b7d commit b2118ef
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/development/tools/dt-schema/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, git
, ruamel_yaml
, jsonschema
, rfc3987
, setuptools
, setuptools_scm
}:

buildPythonPackage rec {
pname = "dtschema";
version = "2020.6";

src = fetchPypi {
inherit pname version;
sha256 = "1zdm0zbn1dfk02yqghfvd0nb26hmzivb6mln6bvxjfdcv6n7pdqf";
};

nativeBuildInputs = [ setuptools_scm git ];
propagatedBuildInputs = [
setuptools
ruamel_yaml
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 ];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3080,6 +3080,8 @@ in

dtc = callPackage ../development/compilers/dtc { };

dt-schema = python3Packages.callPackage ../development/tools/dt-schema { };

dub = callPackage ../development/tools/build-managers/dub { };

duc = callPackage ../tools/misc/duc { };
Expand Down

0 comments on commit b2118ef

Please sign in to comment.