1{ lib 2, beautifulsoup4 3, buildPythonPackage 4, click 5, dataclasses-json 6, fetchFromGitHub 7, htmlmin 8, jinja2 9, markdown2 10, poetry-core 11, pygments 12, pytestCheckHook 13, pythonOlder 14, pytz 15, pyyaml 16, requests 17}: 18 19buildPythonPackage rec { 20 pname = "json-schema-for-humans"; 21 version = "0.46"; 22 format = "pyproject"; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "coveooss"; 28 repo = pname; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-wTO+d0O3SKT2jJ2zNubT2q76PdJ7+kT9RBEw5MMH1yg="; 31 }; 32 33 nativeBuildInputs = [ 34 poetry-core 35 ]; 36 37 propagatedBuildInputs = [ 38 click 39 dataclasses-json 40 htmlmin 41 jinja2 42 markdown2 43 pygments 44 pytz 45 pyyaml 46 requests 47 ]; 48 49 nativeCheckInputs = [ 50 beautifulsoup4 51 pytestCheckHook 52 ]; 53 54 disabledTests = [ 55 # Tests require network access 56 "test_references_url" 57 # Tests are failing 58 "TestMdGenerate" 59 ]; 60 61 pythonImportsCheck = [ 62 "json_schema_for_humans" 63 ]; 64 65 meta = with lib; { 66 description = "Quickly generate HTML documentation from a JSON schema"; 67 homepage = "https://github.com/coveooss/json-schema-for-humans"; 68 changelog = "https://github.com/coveooss/json-schema-for-humans/releases/tag/v${version}"; 69 license = licenses.asl20; 70 maintainers = with maintainers; [ astro ]; 71 }; 72}