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

View file

@ -1,26 +1,24 @@
{ {
lib, lib,
fetchFromGitHub, fetchFromGitHub,
python3, python3Packages,
}: }:
with python3.pkgs; python3Packages.buildPythonApplication rec {
buildPythonApplication rec {
pname = "check-jsonschema"; pname = "check-jsonschema";
version = "0.30.0"; version = "0.33.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "python-jsonschema"; owner = "python-jsonschema";
repo = "check-jsonschema"; repo = "check-jsonschema";
tag = version; tag = version;
hash = "sha256-qaNSL7ZPEWJ8Zc/XPEWtUJYQnUJ7jNdla1I0d6+GReM="; hash = "sha256-dygE9vFQpoDtTBtN4zoWY1JXUxBSgiX3GDzdk72BmgI=";
}; };
propagatedBuildInputs = [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
ruamel-yaml ruamel-yaml
jsonschema jsonschema
requests requests
@ -28,27 +26,26 @@ buildPythonApplication rec {
regress regress
]; ];
nativeCheckInputs = [ nativeCheckInputs = with python3Packages; [
pytestCheckHook pytestCheckHook
pytest-xdist pytest-xdist
responses responses
identify
]; ];
disabledTests = [ "test_schemaloader_yaml_data" ];
pythonImportsCheck = [ pythonImportsCheck = [
"check_jsonschema" "check_jsonschema"
"check_jsonschema.cli" "check_jsonschema.cli"
]; ];
disabledTests = [ meta = {
"test_schemaloader_yaml_data"
];
meta = with lib; {
description = "Jsonschema CLI and pre-commit hook"; description = "Jsonschema CLI and pre-commit hook";
mainProgram = "check-jsonschema"; mainProgram = "check-jsonschema";
homepage = "https://github.com/python-jsonschema/check-jsonschema"; homepage = "https://github.com/python-jsonschema/check-jsonschema";
changelog = "https://github.com/python-jsonschema/check-jsonschema/blob/${version}/CHANGELOG.rst"; changelog = "https://github.com/python-jsonschema/check-jsonschema/blob/${version}/CHANGELOG.rst";
license = licenses.asl20; license = lib.licenses.asl20;
maintainers = with maintainers; [ sudosubin ]; maintainers = with lib.maintainers; [ sudosubin ];
}; };
} }