Files
nixpkgs/pkgs/development/python-modules/bc-jsonpath-ng/default.nix
2026-06-06 01:59:22 +07:00

49 lines
967 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 = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
})