depot/third_party/nixpkgs/pkgs/development/tools/dt-schema/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

30 lines
803 B
Nix

{ lib
, python3
}:
let python = python3.override {
self = python;
packageOverrides = self: super: {
# see https://github.com/devicetree-org/dt-schema/issues/108
jsonschema = super.jsonschema.overridePythonAttrs (old: rec {
version = "4.17.3";
disabled = self.pythonOlder "3.7";
src = old.src.override {
inherit version;
hash = "sha256-D4ZEN6uLYHa6ZwdFPvj5imoNUSqA6T+KvbZ29zfstg0=";
};
propagatedBuildInputs = with self; ([
attrs
pyrsistent
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
typing-extensions
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
pkgutil-resolve-name
]);
});
};
}; in python.pkgs.toPythonApplication python.pkgs.dtschema