Files
2026-07-15 14:04:39 -04:00

49 lines
957 B
Nix

{
lib,
buildPythonPackage,
decorator,
fetchFromGitHub,
ply,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "bc-jsonpath-ng";
version = "1.6.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "bridgecrewio";
repo = "jsonpath-ng";
tag = finalAttrs.version;
hash = "sha256-FWP4tzlacAWVXG3YnPwl5MKc12geaCxZ2xyKx9PSarU=";
};
build-system = [ setuptools ];
dependencies = [
decorator
ply
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# Exclude tests that require oslotest
"tests/test_jsonpath_rw_ext.py"
];
pythonImportsCheck = [ "bc_jsonpath_ng" ];
meta = {
description = "JSONPath implementation for Python";
mainProgram = "bc_jsonpath_ng";
homepage = "https://github.com/bridgecrewio/jsonpath-ng";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})