2022-07-14 12:49:19 +00:00
|
|
|
{ lib, fetchFromGitHub, python3 }:
|
|
|
|
|
|
|
|
with python3.pkgs;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "check-jsonschema";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.27.3";
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-jsonschema";
|
|
|
|
repo = "check-jsonschema";
|
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-WXvhlkU1dRNKhW3sMakd644W56xv8keMjSZL4MrQEc8=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ruamel-yaml
|
|
|
|
jsonschema
|
|
|
|
requests
|
|
|
|
click
|
2024-01-13 08:15:51 +00:00
|
|
|
regress
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-14 12:49:19 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-xdist
|
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"check_jsonschema"
|
|
|
|
"check_jsonschema.cli"
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_schemaloader_yaml_data"
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A jsonschema CLI and pre-commit hook";
|
|
|
|
homepage = "https://github.com/python-jsonschema/check-jsonschema";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/python-jsonschema/check-jsonschema/blob/${version}/CHANGELOG.rst";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.asl20;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ sudosubin ];
|
|
|
|
};
|
|
|
|
}
|