Files
nixpkgs/pkgs/by-name/ch/check-jsonschema/package.nix
2026-08-17 10:47:09 +00:00

52 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "check-jsonschema";
version = "0.38.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-jsonschema";
repo = "check-jsonschema";
tag = finalAttrs.version;
hash = "sha256-VmvcMHAROeIeGtUQhjxq/rdIzKOnjgXejbstHoA6Y14=";
};
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
ruamel-yaml
jsonschema
requests
click
regress
];
nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-xdist
responses
identify
];
disabledTests = [ "test_schemaloader_yaml_data" ];
pythonImportsCheck = [
"check_jsonschema"
"check_jsonschema.cli"
];
meta = {
description = "Jsonschema CLI and pre-commit hook";
mainProgram = "check-jsonschema";
homepage = "https://github.com/python-jsonschema/check-jsonschema";
changelog = "https://github.com/python-jsonschema/check-jsonschema/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ sudosubin ];
};
})