biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / check-jsonschema / default.nix
blobc75ca6e41b4b09e261a7e9ba4bddbfe13446b2ca
1 { lib, fetchFromGitHub, python3 }:
3 with python3.pkgs;
5 buildPythonApplication rec {
6   pname = "check-jsonschema";
7   version = "0.28.2";
8   format = "setuptools";
10   disabled = pythonOlder "3.7";
12   src = fetchFromGitHub {
13     owner = "python-jsonschema";
14     repo = "check-jsonschema";
15     rev = "refs/tags/${version}";
16     hash = "sha256-QHcpcpICYqQUUCkLAV4BpDYn7Te/TGbXFPgr8Emp0ew=";
17   };
19   propagatedBuildInputs = [
20     ruamel-yaml
21     jsonschema
22     requests
23     click
24     regress
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29     pytest-xdist
30     responses
31   ];
33   pythonImportsCheck = [
34     "check_jsonschema"
35     "check_jsonschema.cli"
36   ];
38   disabledTests = [
39     "test_schemaloader_yaml_data"
40   ];
42   meta = with lib; {
43     description = "A jsonschema CLI and pre-commit hook";
44     mainProgram = "check-jsonschema";
45     homepage = "https://github.com/python-jsonschema/check-jsonschema";
46     changelog = "https://github.com/python-jsonschema/check-jsonschema/blob/${version}/CHANGELOG.rst";
47     license = licenses.asl20;
48     maintainers = with maintainers; [ sudosubin ];
49   };