check-jsonschema: init at 0.16.2
This commit is contained in:
parent
0c138bcf03
commit
efcfeb4cd9
41
pkgs/development/tools/check-jsonschema/default.nix
Normal file
41
pkgs/development/tools/check-jsonschema/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib, fetchFromGitHub, python3 }:
|
||||||
|
|
||||||
|
with python3.pkgs;
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
|
pname = "check-jsonschema";
|
||||||
|
version = "0.16.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "python-jsonschema";
|
||||||
|
repo = "check-jsonschema";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-rPjXua5kITr+I+jqeAO2iGUFVhjkLnQkXlUzRvkXduA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
ruamel-yaml
|
||||||
|
jsonschema
|
||||||
|
identify
|
||||||
|
requests
|
||||||
|
click
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-xdist
|
||||||
|
responses
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
|
||||||
|
# https://github.com/python/cpython/issues/74570#issuecomment-1093748531
|
||||||
|
export no_proxy='*';
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A jsonschema CLI and pre-commit hook";
|
||||||
|
homepage = "https://github.com/python-jsonschema/check-jsonschema";
|
||||||
|
license = licenses.apsl20;
|
||||||
|
maintainers = with maintainers; [ sudosubin ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -14761,6 +14761,8 @@ with pkgs;
|
||||||
|
|
||||||
pythonDocs = recurseIntoAttrs (callPackage ../development/interpreters/python/cpython/docs {});
|
pythonDocs = recurseIntoAttrs (callPackage ../development/interpreters/python/cpython/docs {});
|
||||||
|
|
||||||
|
check-jsonschema = callPackage ../development/tools/check-jsonschema {};
|
||||||
|
|
||||||
pypi2nix = callPackage ../development/tools/pypi2nix {};
|
pypi2nix = callPackage ../development/tools/pypi2nix {};
|
||||||
|
|
||||||
pypi-mirror = callPackage ../development/tools/pypi-mirror {};
|
pypi-mirror = callPackage ../development/tools/pypi-mirror {};
|
||||||
|
|
Loading…
Reference in a new issue