nixpkgs/pkgs/development/tools/check-jsonschema/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
969 B
Nix
Raw Normal View History

2022-07-03 14:49:11 +00:00
{ lib, fetchFromGitHub, python3 }:
with python3.pkgs;
buildPythonApplication rec {
pname = "check-jsonschema";
2023-08-05 18:34:20 +00:00
version = "0.23.3";
2023-02-24 04:20:00 +00:00
format = "setuptools";
disabled = pythonOlder "3.7";
2022-07-03 14:49:11 +00:00
src = fetchFromGitHub {
owner = "python-jsonschema";
repo = "check-jsonschema";
rev = version;
2023-08-05 18:34:20 +00:00
hash = "sha256-gPFG1AgInakF8leMM0c1zZt2OdZdIKcUmItwICV8p1I=";
2022-07-03 14:49:11 +00:00
};
propagatedBuildInputs = [
ruamel-yaml
jsonschema
requests
click
];
nativeCheckInputs = [
2022-07-03 14:49:11 +00:00
pytestCheckHook
pytest-xdist
responses
];
2023-02-24 04:20:00 +00:00
pythonImportsCheck = [
"check_jsonschema"
"check_jsonschema.cli"
];
2022-07-03 14:49:11 +00:00
meta = with lib; {
description = "A jsonschema CLI and pre-commit hook";
homepage = "https://github.com/python-jsonschema/check-jsonschema";
2023-02-24 04:20:00 +00:00
changelog = "https://github.com/python-jsonschema/check-jsonschema/blob/${version}/CHANGELOG.rst";
license = licenses.asl20;
2022-07-03 14:49:11 +00:00
maintainers = with maintainers; [ sudosubin ];
};
}