depot/third_party/nixpkgs/pkgs/development/tools/check-jsonschema/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

50 lines
1.1 KiB
Nix

{ lib, fetchFromGitHub, python3 }:
with python3.pkgs;
buildPythonApplication rec {
pname = "check-jsonschema";
version = "0.28.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-jsonschema";
repo = "check-jsonschema";
rev = "refs/tags/${version}";
hash = "sha256-7EHx5XQ3sthxKcD+9ujo5ZXWQ7tZx/f7eN9OiK4k7mc=";
};
propagatedBuildInputs = [
ruamel-yaml
jsonschema
requests
click
regress
];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
responses
];
pythonImportsCheck = [
"check_jsonschema"
"check_jsonschema.cli"
];
disabledTests = [
"test_schemaloader_yaml_data"
];
meta = with lib; {
description = "A 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/${version}/CHANGELOG.rst";
license = licenses.asl20;
maintainers = with maintainers; [ sudosubin ];
};
}