@@ -1,35 +1,65 @@
1−{ lib, buildPythonPackage, fetchFromGitHub
2−, pbr, click, dataclasses-json, htmlmin, jinja2, markdown2, pygments, pytz, pyyaml, requests, pytestCheckHook, beautifulsoup4, tox
1+{ lib
2+, beautifulsoup4
3+, buildPythonPackage
4+, click
5+, dataclasses-json
6+, fetchFromGitHub
7+, htmlmin
8+, jinja2
9+, markdown2
10+, pbr
11+, pygments
12+, pytestCheckHook
13+, pytz
14+, pyyaml
15+, requests
316}:
417
518buildPythonPackage rec {
619 pname = "json-schema-for-humans";
7− version = "0.27.1";
20+ version = "0.31.0";
821
922 src = fetchFromGitHub {
1023 owner = "coveooss";
1124 repo = pname;
1225 rev = "v${version}";
13− sha256 = "0d2a4a2lcqssr5g9rmc76f86nkqc9grixh507vzc9fi1h3gbi765";
26+ sha256 = "1aj1w0qxdw8d6mf5vngk0xjgs7z8vzwc2aycahnkqg7q3cagq19n";
1427 };
1528
1629 nativeBuildInputs = [ pbr ];
30+
1731 propagatedBuildInputs = [
18− click dataclasses-json htmlmin jinja2 markdown2
19− pygments pytz pyyaml requests
32+ click
33+ dataclasses-json
34+ htmlmin
35+ jinja2
36+ markdown2
37+ pygments
38+ pytz
39+ pyyaml
40+ requests
2041 ];
2142
2243 preBuild = ''
2344 export PBR_VERSION=0.0.1
2445 '';
2546
26− checkInputs = [ pytestCheckHook beautifulsoup4 ];
27− pytestFlagsArray = [ "--ignore tests/generate_test.py" ];
47+ checkInputs = [
48+ beautifulsoup4
49+ pytestCheckHook
50+ ];
51+
52+ disabledTests = [
53+ # Tests require network access
54+ "test_references_url"
55+ ];
56+
57+ pythonImportsCheck = [ "json_schema_for_humans" ];
2858
2959 meta = with lib; {
3060 description = "Quickly generate HTML documentation from a JSON schema";
31− homepage = "https://github.com/coveooss/json-schema-for-humans";
32− license = licenses.asl20;
61+ homepage = "https://github.com/coveooss/json-schema-for-humans";
62+ license = licenses.asl20;
3363 maintainers = with maintainers; [ astro ];
3464 };
3565}