2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
dataclasses-json,
|
|
|
|
fetchFromGitHub,
|
|
|
|
htmlmin,
|
|
|
|
jinja2,
|
|
|
|
markdown2,
|
|
|
|
poetry-core,
|
|
|
|
pygments,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "json-schema-for-humans";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.0.3";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coveooss";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "json-schema-for-humans";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-QMDbuiHfL8JLYJwceyxGR3Zc8+ZBVlCGHOBeH5x4BmQ=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonRelaxDeps = [ "dataclasses-json" ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2021-06-28 23:13:55 +00:00
|
|
|
click
|
|
|
|
dataclasses-json
|
|
|
|
htmlmin
|
|
|
|
jinja2
|
|
|
|
markdown2
|
|
|
|
pygments
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
requests
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
beautifulsoup4
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_references_url"
|
2021-12-06 16:07:01 +00:00
|
|
|
# Tests are failing
|
|
|
|
"TestMdGenerate"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "json_schema_for_humans" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
description = "Quickly generate HTML documentation from a JSON schema";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/coveooss/json-schema-for-humans";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/coveooss/json-schema-for-humans/releases/tag/v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with maintainers; [ astro ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "generate-schema-doc";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|