Files
Arnout Engelen 827932a29c json-schema-for-humans: 1.5.1 -> 2.0.0
* Checked disabled tests are still failing.
* Checked the tool still works (seems not a lot changed)
2026-10-07 12:32:47 +02:00

72 lines
1.6 KiB
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
click,
dataclasses-json,
fetchFromGitHub,
htmlmin,
jinja2,
markdown2,
poetry-core,
pygments,
pytestCheckHook,
pytz,
pyyaml,
requests,
}:
buildPythonPackage rec {
pname = "json-schema-for-humans";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "coveooss";
repo = "json-schema-for-humans";
tag = "v${version}";
hash = "sha256-sjk2Moq4xMIS5ZXQgEU9DSTe0QMIiNtYWLB6saHpnNA=";
};
build-system = [ poetry-core ];
dependencies = [
click
dataclasses-json
htmlmin
jinja2
markdown2
pygments
pytz
pyyaml
requests
];
nativeCheckInputs = [
beautifulsoup4
pytestCheckHook
];
disabledTests = [
# Tests require network access
"test_references_url"
# Tests are failing
"TestMdGenerate"
# Broken since click was updated to 8.2.1 in https://github.com/NixOS/nixpkgs/pull/448189
# Click 8.2 separates stdout and stderr, but upstream is on click 8.1 (https://github.com/pallets/click/pull/2523)
"test_nonexistent_output_path"
"test_config_parameters_with_nonexistent_output_path"
];
pythonImportsCheck = [ "json_schema_for_humans" ];
meta = {
description = "Quickly generate HTML documentation from a JSON schema";
homepage = "https://github.com/coveooss/json-schema-for-humans";
changelog = "https://github.com/coveooss/json-schema-for-humans/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ astro ];
mainProgram = "generate-schema-doc";
};
}