2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, dataclasses-json
|
|
|
|
, fetchFromGitHub
|
|
|
|
, htmlmin
|
|
|
|
, jinja2
|
|
|
|
, markdown2
|
2021-12-06 16:07:01 +00:00
|
|
|
, poetry-core
|
2021-06-28 23:13:55 +00:00
|
|
|
, pygments
|
|
|
|
, pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2024-01-25 14:12:00 +00:00
|
|
|
, pythonRelaxDepsHook
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytz
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "json-schema-for-humans";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.47";
|
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-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-yioYsCp+q5YWdIWDlNZkpaLqo++n+dV5jyEeIhUDHr4=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"dataclasses-json"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDepsHook
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "generate-schema-doc";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|