1{ lib, buildPythonPackage, fetchFromGitHub
2, pbr, click, dataclasses-json, htmlmin, jinja2, markdown2, pygments, pytz, pyyaml, requests, pytestCheckHook, beautifulsoup4, tox
3}:
4
5buildPythonPackage rec {
6 pname = "json-schema-for-humans";
7 version = "0.27.1";
8
9 src = fetchFromGitHub {
10 owner = "coveooss";
11 repo = pname;
12 rev = "v${version}";
13 sha256 = "0d2a4a2lcqssr5g9rmc76f86nkqc9grixh507vzc9fi1h3gbi765";
14 };
15
16 nativeBuildInputs = [ pbr ];
17 propagatedBuildInputs = [
18 click dataclasses-json htmlmin jinja2 markdown2
19 pygments pytz pyyaml requests
20 ];
21
22 preBuild = ''
23 export PBR_VERSION=0.0.1
24 '';
25
26 checkInputs = [ pytestCheckHook beautifulsoup4 ];
27 pytestFlagsArray = [ "--ignore tests/generate_test.py" ];
28
29 meta = with lib; {
30 description = "Quickly generate HTML documentation from a JSON schema";
31 homepage = "https://github.com/coveooss/json-schema-for-humans";
32 license = licenses.asl20;
33 maintainers = with maintainers; [ astro ];
34 };
35}