mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
9761feba42
This makes the package build again in unstable. Updating to the latest version 0.27.0 can be done separately as it involves packaging an additional new dependency (regress).
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ lib, fetchFromGitHub, python3 }:
|
|
|
|
with python3.pkgs;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "check-jsonschema";
|
|
version = "0.25.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-jsonschema";
|
|
repo = "check-jsonschema";
|
|
rev = version;
|
|
hash = "sha256-Hss4MgE09v2KvL8OIapFgocO+5EWE2WEr5xBAjhwNeE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ruamel-yaml
|
|
jsonschema
|
|
requests
|
|
click
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|