e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{ lib, fetchFromGitHub, python3 }:
|
|
|
|
with python3.pkgs;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "check-jsonschema";
|
|
version = "0.27.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-jsonschema";
|
|
repo = "check-jsonschema";
|
|
rev = version;
|
|
hash = "sha256-WXvhlkU1dRNKhW3sMakd644W56xv8keMjSZL4MrQEc8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ruamel-yaml
|
|
jsonschema
|
|
requests
|
|
click
|
|
regress
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-xdist
|
|
responses
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"check_jsonschema"
|
|
"check_jsonschema.cli"
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_schemaloader_yaml_data"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A jsonschema CLI and pre-commit hook";
|
|
homepage = "https://github.com/python-jsonschema/check-jsonschema";
|
|
changelog = "https://github.com/python-jsonschema/check-jsonschema/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ sudosubin ];
|
|
};
|
|
}
|