emaryn 2025-04-18 23:18:00 +08:00 committed by emaryn
parent 396cd35344
commit 83087e2f1d

View file

@ -1,26 +1,24 @@
{
lib,
fetchFromGitHub,
python3,
python3Packages,
}:
with python3.pkgs;
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "check-jsonschema";
version = "0.30.0";
format = "setuptools";
disabled = pythonOlder "3.7";
version = "0.33.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-jsonschema";
repo = "check-jsonschema";
tag = version;
hash = "sha256-qaNSL7ZPEWJ8Zc/XPEWtUJYQnUJ7jNdla1I0d6+GReM=";
hash = "sha256-dygE9vFQpoDtTBtN4zoWY1JXUxBSgiX3GDzdk72BmgI=";
};
propagatedBuildInputs = [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
ruamel-yaml
jsonschema
requests
@ -28,27 +26,26 @@ buildPythonApplication rec {
regress
];
nativeCheckInputs = [
nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-xdist
responses
identify
];
disabledTests = [ "test_schemaloader_yaml_data" ];
pythonImportsCheck = [
"check_jsonschema"
"check_jsonschema.cli"
];
disabledTests = [
"test_schemaloader_yaml_data"
];
meta = with lib; {
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/${version}/CHANGELOG.rst";
license = licenses.asl20;
maintainers = with maintainers; [ sudosubin ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ sudosubin ];
};
}